summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--feedlist.js2
-rw-r--r--functions.js18
-rw-r--r--modules/popup-dialog.php4
-rw-r--r--modules/pref-feeds.php24
-rw-r--r--prefs.js17
-rw-r--r--tt-rss.css31
6 files changed, 62 insertions, 34 deletions
diff --git a/feedlist.js b/feedlist.js
index f3332477b..0b59ade4f 100644
--- a/feedlist.js
+++ b/feedlist.js
@@ -267,7 +267,7 @@ function request_counters() {
function displayNewContentPrompt(id) {
try {
- var msg = "<a href='#' onclick='viewfeed("+id+")'>" +
+ var msg = "<a href='#' onclick='viewCurrentFeed()'>" +
__("New articles available in this feed (click to show)") + "</a>";
msg = msg.replace("%s", getFeedName(id));
diff --git a/functions.js b/functions.js
index 82dc34718..527a6f817 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 715ea9655..ad434bd9b 100644
--- a/modules/popup-dialog.php
+++ b/modules/popup-dialog.php
@@ -321,7 +321,7 @@
print "<input type=\"hidden\" name=\"op\" value=\"rpc\">";
print "<input type=\"hidden\" name=\"subop\" value=\"updateFeedBrowser\">";
- print "
+ print "<div dojoType=\"dijit.Toolbar\">
<div style='float : right'>
<img style='display : none'
id='feed_browser_spinner' src='".
@@ -347,7 +347,7 @@
print "</select> ";
- print "<p>";
+ print "</div>";
$owner_uid = $_SESSION["uid"];
diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php
index b38d8793c..48563812f 100644
--- a/modules/pref-feeds.php
+++ b/modules/pref-feeds.php
@@ -1062,7 +1062,7 @@
}
}
- print "<div>
+ print "<div dojoType=\"dijit.Toolbar\">
<input id=\"fadd_cat\"
onkeypress=\"return filterCR(event, addFeedCat)\"
size=\"40\">
@@ -1073,14 +1073,14 @@
WHERE owner_uid = ".$_SESSION["uid"]."
ORDER BY title");
- print "<p>";
+# print "<p>";
if (db_num_rows($result) != 0) {
- print __('Select:')."
- <a href=\"#\" onclick=\"selectTableRows('prefFeedCatList', 'all')\">".__('All')."</a>,
- <a href=\"#\" onclick=\"selectTableRows('prefFeedCatList', 'none')\">".__('None')."</a>";
-
+# print __('Select:')."
+# <a href=\"#\" onclick=\"selectTableRows('prefFeedCatList', 'all')\">".__('All')."</a>,
+# <a href=\"#\" onclick=\"selectTableRows('prefFeedCatList', 'none')\">".__('None')."</a>";
+#
print "<div class=\"prefFeedCatHolder\">";
print "<form id=\"feed_cat_edit_form\" onsubmit=\"return false\">";
@@ -1097,12 +1097,12 @@
$cat_id = $line["id"];
$this_row_id = "id=\"FCATR-$cat_id\"";
- print "<tr class=\"$class\" $this_row_id>";
+ print "<tr class=\"\" $this_row_id>";
$edit_title = htmlspecialchars($line["title"]);
print "<td width='5%' align='center'><input
- onclick='toggleSelectRow(this);'
+ onclick='toggleSelectRow2(this);' dojoType=\"dijit.form.CheckBox\"
type=\"checkbox\" id=\"FCCHK-$cat_id\"></td>";
print "<td>";
@@ -1427,14 +1427,14 @@
$icon_file = ICONS_DIR . "/" . $details["id"] . ".ico";
if (file_exists($icon_file) && filesize($icon_file) > 0) {
- $feed_icon = "<img class=\"tinyFeedIcon\" src=\"" . ICONS_URL .
+ $feed_icon = "<img style=\"vertical-align : middle\" class=\"tinyFeedIcon\" src=\"" . ICONS_URL .
"/".$details["id"].".ico\">";
} else {
$feed_icon = "<img class=\"tinyFeedIcon\" src=\"images/blank_icon.gif\">";
}
- $check_box = "<input onclick='toggleSelectListRow(this)'
- class='feedBrowseCB'
+ $check_box = "<input onclick='toggleSelectListRow2(this)'
+ dojoType=\"dijit.form.CheckBox\"
type=\"checkbox\" id=\"FBCHK-" . $details["id"] . "\">";
$class = ($feedctr % 2) ? "even" : "odd";
@@ -1454,7 +1454,7 @@
src='images/feed-icon-12x12.png'></a>";
print "<li title=\"".htmlspecialchars($details["site_url"])."\"
- class='$class' id=\"FBROW-".$details["id"]."\">$check_box".
+ id=\"FBROW-".$details["id"]."\">$check_box".
"$feed_icon $feed_url " . htmlspecialchars($details["title"]) .
"&nbsp;<span class='subscribers'>($subscribers)</span>
$site_url</li>";
diff --git a/prefs.js b/prefs.js
index c959e5dfa..b8b1b49b2 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 55c1871a7..9edd15c33 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 {