1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-24 01:31:29 +00:00

rework user CSS support (bump schema)

This commit is contained in:
Andrew Dolgov
2010-11-24 19:23:24 +03:00
parent dcb38ced56
commit 88e4e5979c
12 changed files with 98 additions and 17 deletions

View File

@@ -926,6 +926,7 @@ function init() {
dojo.require("dijit.InlineEditBox");
dojo.require("dijit.ColorPalette");
dojo.require("dijit.ProgressBar");
dojo.require("dijit.form.SimpleTextarea");
dojo.registerModulePath("lib", "..");
dojo.registerModulePath("fox", "../..");
@@ -1719,3 +1720,33 @@ function clearTwitterCredentials() {
exception_error("clearTwitterCredentials", e);
}
}
function customizeCSS() {
try {
var query = "backend.php?op=dlg&id=customizeCSS";
if (dijit.byId("cssEditDlg"))
dijit.byId("cssEditDlg").destroyRecursive();
dialog = new dijit.Dialog({
id: "cssEditDlg",
title: __("Customize stylesheet"),
style: "width: 600px",
execute: function() {
notify_progress('Saving data...', true);
new Ajax.Request("backend.php", {
parameters: dojo.objectToQuery(this.attr('value')),
onComplete: function(transport) {
notify('');
window.location.reload();
} });
},
href: query});
dialog.show();
} catch (e) {
exception_error("customizeCSS", e);
}
}