diff options
author | Andrew Dolgov <[email protected]> | 2008-05-19 11:24:46 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2008-05-19 11:24:46 +0100 |
commit | 3a40e8a2eda381bd33c2b52869ba50826b614529 (patch) | |
tree | ec0b82a6cb845851611761d80efa5f554a524a4b /feedlist.js | |
parent | 673c9946741ab7fcc9bcee02c25c26d295e93693 (diff) |
add placeholder mouse trap code, misc fixes
Diffstat (limited to 'feedlist.js')
-rw-r--r-- | feedlist.js | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/feedlist.js b/feedlist.js index d5c158952..62bfadb5a 100644 --- a/feedlist.js +++ b/feedlist.js @@ -1,6 +1,7 @@ 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; @@ -327,6 +328,7 @@ function feedlist_init() { hideOrShowFeeds(document, getInitParam("hide_read_feeds") == 1); document.onkeydown = hotkey_handler; + document.onmousedown = mouse_handler; setTimeout("timeout()", 0); /* debug("about to remove splash, OMG!"); @@ -460,7 +462,29 @@ function init_collapsable_feedlist(theme) { } 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); + } +} + |