commento/frontend/js/dashboard-general.js
2018-12-20 00:50:00 -05:00

20 lines
504 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.commento, document));