1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 00:15:55 +00:00

user css dialog: allow saving and applying CSS without closing the dialog

This commit is contained in:
Andrew Dolgov
2019-12-06 14:02:30 +03:00
parent 0697eca0e1
commit ac95ab4a65
3 changed files with 15 additions and 3 deletions

View File

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