revert button (which doesn't work thanks to #2162)

v1.18.x
psychobunny 10 years ago
parent 3635cd21aa
commit 00269853f3

@ -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,

Loading…
Cancel
Save