From f714c713f34cd9d55c2a2f21b7b40bb8d4d61852 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 7 May 2014 12:30:58 -0400 Subject: [PATCH] fixes deactivate text on plugin buttons --- public/src/forum/admin/plugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/forum/admin/plugins.js b/public/src/forum/admin/plugins.js index 733b01ba12..1ae5aa6dd5 100644 --- a/public/src/forum/admin/plugins.js +++ b/public/src/forum/admin/plugins.js @@ -14,7 +14,7 @@ define(function() { pluginID = $(this).parents('li').attr('data-plugin-id'); var btn = $(this); socket.emit('admin.plugins.toggleActive', pluginID, function(err, status) { - btn.html(' ' + status.active ? 'Deactivate' : 'Activate'); + btn.html(' ' + (status.active ? 'Deactivate' : 'Activate')); btn.toggleClass('btn-warning', status.active).toggleClass('btn-success', !status.active); app.alert({