summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-12-06 14:02:30 +0300
committerAndrew Dolgov <[email protected]>2019-12-06 14:02:30 +0300
commitac95ab4a659c56afee048923883fe9ee1491c35b (patch)
tree736db91a39634a2e2c8ab8349f4d95526a486571 /classes
parent0697eca0e111a194f15f12025ee1859b0f32843b (diff)
user css dialog: allow saving and applying CSS without closing the dialog
Diffstat (limited to 'classes')
-rw-r--r--classes/pref/prefs.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php
index e66052657..b00c4c83f 100644
--- a/classes/pref/prefs.php
+++ b/classes/pref/prefs.php
@@ -1132,12 +1132,18 @@ class Pref_Prefs extends Handler_Protected {
print_hidden("method", "setpref");
print_hidden("key", "USER_STYLESHEET");
+ print "<div id='css_edit_apply_msg' style='display : none'>";
+ print_warning(__("User CSS has been applied, you might need to reload the page to see all changes."));
+ print "</div>";
+
print "<textarea class='panel user-css-editor' dojoType='dijit.form.SimpleTextarea'
style='font-size : 12px;' name='value'>$value</textarea>";
print "<footer>";
- print "<button dojoType='dijit.form.Button'
- onclick=\"dijit.byId('cssEditDlg').execute()\">".__('Save')."</button> ";
+ print "<button dojoType='dijit.form.Button' class='alt-success'
+ onclick=\"dijit.byId('cssEditDlg').apply()\">".__('Apply')."</button> ";
+ print "<button dojoType='dijit.form.Button' class='alt-primary'
+ onclick=\"dijit.byId('cssEditDlg').execute()\">".__('Save and reload')."</button> ";
print "<button dojoType='dijit.form.Button'
onclick=\"dijit.byId('cssEditDlg').hide()\">".__('Cancel')."</button>";
print "</footer>";