var _feed_cur_page = 0;
var _infscroll_disable = 0;
var _infscroll_request_sent = 0;
+var feed_under_pointer = undefined;
function viewCategory(cat) {
active_feed_is_cat = true;
hideOrShowFeeds(document, getInitParam("hide_read_feeds") == 1);
document.onkeydown = hotkey_handler;
+ document.onmousedown = mouse_handler;
setTimeout("timeout()", 0);
/* debug("about to remove splash, OMG!");
}
function remove_splash() {
- debug("about to remove splash, OMG!");
- Element.hide("overlay");
- debug("removed splash!");
+ if (Element.visible("overlay")) {
+ debug("about to remove splash, OMG!");
+ Element.hide("overlay");
+ debug("removed splash!");
+ }
+}
+
+function feedMouseIn(id) {
+ try {
+ if (feed_under_pointer != id) {
+ feed_under_pointer = id;
+ }
+
+ } catch (e) {
+ exception_error("feedMouseIn", e);
+ }
}
+
+function feedMouseOut(id) {
+ try {
+ feed_under_pointer = undefined;
+ } catch (e) {
+ exception_error("feedMouseOut", e);
+ }
+}
+
var rows = new Array();
+ if (!content) return rows;
+
for (i = 0; i < content.rows.length; i++) {
var row_id = content.rows[i].id.replace("RROW-", "");
if (row_id.length > 0 && content.rows[i].className.match("Unread")) {
var rows = new Array();
+ if (!content) return rows;
+
for (i = 0; i < content.rows.length; i++) {
var row_id = content.rows[i].id.replace("RROW-", "");
if (row_id.length > 0) {
$feed = "<a title=\"$link_title\" id=\"FEEDL-$feed_id\"
href=\"javascript:viewfeed('$feed_id', '', false, '', false, 0);\">$feed_title</a>";
- print "<li id=\"FEEDR-$feed_id\" class=\"$class\">";
+ print "<li id=\"FEEDR-$feed_id\" class=\"$class\"
+ onmouseover='feedMouseIn($feed_id)' onmouseout='feedMouseOut($feed_id)'>";
if (get_pref($link, 'ENABLE_FEED_ICONS')) {
print "$feed_icon";
}
}
}
+function mouse_handler(e) {
+ try {
+ var r_mouse = false;
+
+ if (window.event) {
+ r_mouse = window.event.button == 2;
+ } else if (e) {
+ r_mouse = e.which == 3;
+ }
+
+ } catch (e) {
+ exception_error("mouse_handler", e);
+ }
+}
var sel_articles = new Array();
var container = document.getElementById("headlinesInnerContainer");
+ if (!container) return sel_articles;
+
for (i = 0; i < container.childNodes.length; i++) {
var child = container.childNodes[i];