v1.18.x
psychobunny 11 years ago
parent aafbb55572
commit 46028e49f7

@ -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');
});

Loading…
Cancel
Save