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));
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;
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='".
print "</select> ";
- print "<p>";
+ print "</div>";
$owner_uid = $_SESSION["uid"];
}
}
- print "<div>
+ print "<div dojoType=\"dijit.Toolbar\">
<input id=\"fadd_cat\"
onkeypress=\"return filterCR(event, addFeedCat)\"
size=\"40\">
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\">";
$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>";
$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";
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"]) .
" <span class='subscribers'>($subscribers)</span>
$site_url</li>";
infobox_callback2(transport);
} });
- link.value = "";
+ cat.value = "";
}
}
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);
+ }
});
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;
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;
}
}
div.tagCloudContainer {
- border : 1px solid gray;
+ border : 1px solid #c0c0c0;
background-color : white;
margin : 5px 0px 5px 0px;
padding : 5px;
}
div.errorExplained {
- border : 1px solid gray;
+ border : 1px solid #c0c0c0;
background-color : white;
margin : 5px 0px 5px 0px;
padding : 5px;
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 {