From 46028e49f7087256991414a466d3f58d35eb83f6 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Mon, 2 Jun 2014 16:58:38 -0400 Subject: [PATCH] closes #1600 --- public/src/forum/admin/index.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/public/src/forum/admin/index.js b/public/src/forum/admin/index.js index 2dfcc720c7..b6f6ed147d 100644 --- a/public/src/forum/admin/index.js +++ b/public/src/forum/admin/index.js @@ -37,6 +37,17 @@ define('forum/admin/index', function() { }); $('.restart').on('click', function() { + app.alert({ + timeout: 5000, + title: 'Restarting...', + message: 'NodeBB is restarting.', + type: 'info' + }); + + $(window).one('action:reconnected', function() { + app.alertSuccess('NodeBB has successfully restarted.'); + }); + socket.emit('admin.restart'); });