From a83280194a4482c14fac7d8c1940d81c6d089357 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 18 Nov 2010 22:26:04 +0300 Subject: [PATCH] misc dialog style updates --- feedlist.js | 2 +- functions.js | 18 ++++++++++++++++++ modules/popup-dialog.php | 4 ++-- modules/pref-feeds.php | 24 ++++++++++++------------ prefs.js | 17 ++++++----------- tt-rss.css | 31 +++++++++++++++++++++++-------- 6 files changed, 62 insertions(+), 34 deletions(-) diff --git a/feedlist.js b/feedlist.js index f3332477..0b59ade4 100644 --- a/feedlist.js +++ b/feedlist.js @@ -267,7 +267,7 @@ function request_counters() { function displayNewContentPrompt(id) { try { - var msg = "" + + var msg = "" + __("New articles available in this feed (click to show)") + ""; msg = msg.replace("%s", getFeedName(id)); diff --git a/functions.js b/functions.js index 82dc3471..527a6f81 100644 --- a/functions.js +++ b/functions.js @@ -306,10 +306,28 @@ function toggleSelectListRow(sender) { return toggleSelectRow(sender, row); } +/* this is for dijit Checkbox */ +function toggleSelectListRow2(sender) { + var row = sender.domNode.parentNode; + return toggleSelectRow(sender, row); +} + function tSR(sender, row) { return toggleSelectRow(sender, row); } +/* this is for dijit Checkbox */ +function toggleSelectRow2(sender, row) { + + if (!row) row = sender.domNode.parentNode.parentNode; + + if (sender.checked && !row.hasClassName('Selected')) + row.addClassName('Selected'); + else + row.removeClassName('Selected'); +} + + function toggleSelectRow(sender, row) { if (!row) row = sender.parentNode.parentNode; diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index 715ea965..ad434bd9 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -321,7 +321,7 @@ print ""; print ""; - print " + print "
".__('All').", - ".__('None').""; - +# print __('Select:')." +# ".__('All').", +# ".__('None').""; +# print "
"; print "
"; @@ -1097,12 +1097,12 @@ $cat_id = $line["id"]; $this_row_id = "id=\"FCATR-$cat_id\""; - print ""; + print ""; $edit_title = htmlspecialchars($line["title"]); print ""; print ""; @@ -1427,14 +1427,14 @@ $icon_file = ICONS_DIR . "/" . $details["id"] . ".ico"; if (file_exists($icon_file) && filesize($icon_file) > 0) { - $feed_icon = ""; } else { $feed_icon = ""; } - $check_box = ""; $class = ($feedctr % 2) ? "even" : "odd"; @@ -1454,7 +1454,7 @@ src='images/feed-icon-12x12.png'>"; print "
  • $check_box". + id=\"FBROW-".$details["id"]."\">$check_box". "$feed_icon $feed_url " . htmlspecialchars($details["title"]) . " ($subscribers) $site_url
  • "; diff --git a/prefs.js b/prefs.js index c959e5df..b8b1b49b 100644 --- a/prefs.js +++ b/prefs.js @@ -224,7 +224,7 @@ function addFeedCat() { infobox_callback2(transport); } }); - link.value = ""; + cat.value = ""; } } @@ -1078,17 +1078,12 @@ function init_second_stage() { dojo.addOnLoad(function() { - var active_tab = getInitParam("prefs_active_tab"); - if (!$(active_tab+"Tab")) active_tab = "genConfig"; - if (!active_tab || active_tab == '0') active_tab = "genConfig"; + var tab = getURLParam('tab'); - var http_tab = getURLParam('tab'); - - if (http_tab) active_tab = http_tab; - - var tab = dijit.byId(active_tab + "Tab"); - - if (tab) dijit.byId("pref-tabs").selectChild(tab); + if (tab) { + tab = dijit.byId(tab + "Tab"); + if (tab) dijit.byId("pref-tabs").selectChild(tab); + } }); diff --git a/tt-rss.css b/tt-rss.css index 55c1871a..9edd15c3 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -222,6 +222,16 @@ input.editbox { cursor : pointer; } +.blankborder, .blankborder td { + border-style : solid; + border-color : transparent; + border-width : 0px 0px 1px 0px; +} + +.Selected, .Selected td { + background-color : #fff7d5; +} + .even.Unread.Selected, .even.Unread.Selected td { background-color : #fff7d5; font-weight : bold; @@ -400,8 +410,10 @@ table.prefFeedList td.feedSelect { div.prefFeedCatHolder { height : 250px; overflow : auto; - border : 1px solid gray; - margin : 5px 0px 5px 0px; + border-width : 0px 1px 1px 1px; + border-color : #c0c0c0; + border-style : solid; + margin : 0px 0px 5px 0px; background-color : white; } @@ -675,7 +687,7 @@ span.groupPrompt { } div.tagCloudContainer { - border : 1px solid gray; + border : 1px solid #c0c0c0; background-color : white; margin : 5px 0px 5px 0px; padding : 5px; @@ -683,7 +695,7 @@ div.tagCloudContainer { } div.errorExplained { - border : 1px solid gray; + border : 1px solid #c0c0c0; background-color : white; margin : 5px 0px 5px 0px; padding : 5px; @@ -712,16 +724,19 @@ ul.userFeedList { ul.browseFeedList { height : 300px; overflow : auto; - list-style-type : none; + border-width : 0px 1px 1px 1px; + border-color : #c0c0c0; + border-style : solid; margin : 0px 0px 5px 0px; - padding : 0px; - border : 1px solid gray; background-color : white; + list-style-type : none; + padding : 0px; + } ul.browseFeedList li { margin : 0px; - padding : 0px; + padding : 2px 4px 2px 4px; } span.subscribers { -- 2.39.2