mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 17:05:51 +01:00
closes #1600
This commit is contained in:
@@ -37,6 +37,17 @@ define('forum/admin/index', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$('.restart').on('click', 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');
|
socket.emit('admin.restart');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user