summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-28 21:04:29 +0400
committerAndrew Dolgov <[email protected]>2013-03-28 21:04:29 +0400
commit5d40efc9b00fae24ab71d38c9508285a61743a8f (patch)
tree62fd761a97dda8fbf384c5a488346fddc6966cab /classes
parent56b61583a2eb657964b136af14389c4e3cfad110 (diff)
add ability to select CSS files in themes/
Diffstat (limited to 'classes')
-rw-r--r--classes/pref/prefs.php16
1 files changed, 9 insertions, 7 deletions
diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php
index ad5dff4ad..2190dc0e7 100644
--- a/classes/pref/prefs.php
+++ b/classes/pref/prefs.php
@@ -113,8 +113,6 @@ class Pref_Prefs extends Handler_Protected {
WHERE $profile_qpart AND owner_uid = ".$_SESSION["uid"]);
initialize_user_prefs($this->link, $_SESSION["uid"], $_SESSION["profile"]);
-
- print "PREFS_THEME_CHANGED";
}
function index() {
@@ -389,11 +387,7 @@ class Pref_Prefs extends Handler_Protected {
parameters: dojo.objectToQuery(this.getValues()),
onComplete: function(transport) {
var msg = transport.responseText;
- if (msg.match('PREFS_THEME_CHANGED')) {
- window.location.reload();
- } else {
- notify_info(msg);
- }
+ notify_info(msg);
} });
}
</script>";
@@ -496,6 +490,14 @@ class Pref_Prefs extends Handler_Protected {
print "<button dojoType=\"dijit.form.Button\"
onclick=\"customizeCSS()\">" . __('Customize') . "</button>";
+ } else if ($pref_name == "USER_CSS_THEME") {
+
+ $themes = array_map("basename", glob("themes/*.css"));
+
+ print_select($pref_name, $value, $themes,
+ 'dojoType="dijit.form.Select"');
+
+
} else if ($pref_name == "DEFAULT_ARTICLE_LIMIT") {
$limits = array(15, 30, 45, 60);