From aec9df485dda2b694cc18b9e3a5877379f910541 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 26 Jan 2009 17:01:46 +0100 Subject: colored labels UI improvements --- modules/pref-labels.php | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) (limited to 'modules') diff --git a/modules/pref-labels.php b/modules/pref-labels.php index 162592625..66753df9a 100644 --- a/modules/pref-labels.php +++ b/modules/pref-labels.php @@ -14,6 +14,18 @@ AND owner_uid = " . $_SESSION["uid"]); } + return; + } + + if ($subop == "color-reset") { + $ids = split(',', db_escape_string($_REQUEST["ids"])); + + foreach ($ids as $id) { + db_query($link, "UPDATE ttrss_labels2 SET + fg_color = '', bg_color = '' WHERE id = '$id' + AND owner_uid = " . $_SESSION["uid"]); + } + } if ($subop == "save") { @@ -192,8 +204,8 @@ $fg_color = $line["fg_color"]; $bg_color = $line["bg_color"]; - if (!$fg_color) $fg_color = "black"; - if (!$bg_color) $bg_color = "transparent"; + if (!$fg_color) $fg_color = ""; + if (!$bg_color) $bg_color = ""; print " -
"; + + print "
z
"; + onclick=\"colorPicker(this, '$id', '$fg_color', '$bg_color')\">α
 "; - print ""; */ - print "" . $line["caption"] . ""; -- cgit v1.2.3