diff options
author | Andrew Dolgov <[email protected]> | 2019-12-06 14:02:30 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-12-06 14:02:30 +0300 |
commit | ac95ab4a659c56afee048923883fe9ee1491c35b (patch) | |
tree | 736db91a39634a2e2c8ab8349f4d95526a486571 /js/PrefHelpers.js | |
parent | 0697eca0e111a194f15f12025ee1859b0f32843b (diff) |
user css dialog: allow saving and applying CSS without closing the dialog
Diffstat (limited to 'js/PrefHelpers.js')
-rw-r--r-- | js/PrefHelpers.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/js/PrefHelpers.js b/js/PrefHelpers.js index 6a62cb593..4b908204c 100644 --- a/js/PrefHelpers.js +++ b/js/PrefHelpers.js @@ -150,6 +150,12 @@ define(["dojo/_base/declare"], function (declare) { id: "cssEditDlg", title: __("Customize stylesheet"), style: "width: 600px", + apply: function() { + xhrPost("backend.php", this.attr('value'), () => { + new Effect.Appear("css_edit_apply_msg"); + $("user_css_style").innerText = this.attr('value'); + }); + }, execute: function () { Notify.progress('Saving data...', true); |