commento/frontend/js/dashboard-general.js
2018-06-05 13:52:25 +05:30

20 lines
495 B
JavaScript

(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));