mirror of
https://gitlab.com/commento/commento.git
synced 2025-06-29 22:56:37 -04:00
frontend: check in html, css, js
This commit is contained in:
19
frontend/js/dashboard-general.js
Normal file
19
frontend/js/dashboard-general.js
Normal file
@ -0,0 +1,19 @@
|
||||
(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));
|
Reference in New Issue
Block a user