From 8112ca73c8400bd36f4d852c730481c1b2d83bbd Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 23 Oct 2014 15:21:44 -0400 Subject: [PATCH] reloading on plugin activation click instead of restart --- public/src/admin/extend/plugins.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/admin/extend/plugins.js b/public/src/admin/extend/plugins.js index b5f61a9801..28262f22fb 100644 --- a/public/src/admin/extend/plugins.js +++ b/public/src/admin/extend/plugins.js @@ -20,11 +20,11 @@ define('admin/extend/plugins', function() { app.alert({ alert_id: 'plugin_toggled', title: 'Plugin ' + (status.active ? 'Enabled' : 'Disabled'), - message: status.active ? 'Please restart your NodeBB to fully activate this plugin' : 'Plugin successfully deactivated', + message: status.active ? 'Please reload your NodeBB to fully activate this plugin' : 'Plugin successfully deactivated', type: status.active ? 'warning' : 'success', timeout: 5000, clickfn: function() { - socket.emit('admin.restart'); + socket.emit('admin.reload'); } }); });