From ac95ab4a659c56afee048923883fe9ee1491c35b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 6 Dec 2019 14:02:30 +0300 Subject: user css dialog: allow saving and applying CSS without closing the dialog --- js/PrefHelpers.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'js/PrefHelpers.js') 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); -- cgit v1.2.3-54-g00ecf