commento/frontend/js/dashboard-general.js

20 lines
495 B
JavaScript
Raw Normal View History

2018-06-04 00:06:17 +08:00
(function (global, document) {
// Opens the general settings window.
global.generalOpen = function() {
$(".view").hide();
$("#general-view").show();
};
global.generalSaveHandler = function() {
var data = global.dashboard.$data;
global.buttonDisable("#save-general-button");
global.domainUpdate(data.domains[data.cd], function() {
global.globalOKShow("Settings saved!");
global.buttonEnable("#save-general-button");
});
};
} (window, document));