mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 20:41:17 +01:00
revert button (which doesn't work thanks to #2162)
This commit is contained in:
@@ -21,6 +21,7 @@ define('forum/admin/settings', ['uploader', 'sounds'], function(uploader, sounds
|
||||
var fields = $('#content [data-field]'),
|
||||
numFields = fields.length,
|
||||
saveBtn = $('#save'),
|
||||
revertBtn = $('#revert'),
|
||||
x, key, inputType, field;
|
||||
|
||||
for (x = 0; x < numFields; x++) {
|
||||
@@ -54,6 +55,10 @@ define('forum/admin/settings', ['uploader', 'sounds'], function(uploader, sounds
|
||||
}
|
||||
}
|
||||
|
||||
revertBtn.off('click').on('click', function(e) {
|
||||
ajaxify.refresh();
|
||||
});
|
||||
|
||||
saveBtn.off('click').on('click', function(e) {
|
||||
e.preventDefault();
|
||||
var done = 0,
|
||||
|
||||
Reference in New Issue
Block a user