diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2012-08-15 02:20:57 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2012-08-15 02:20:57 +0200 |
commit | cb38efda8df21c1e98e5fbf2e4b794c39a0c1e9a (patch) | |
tree | 3d702b513be6f6f83bfb35aec4360d105c8b5ae9 | |
parent | 648ae045230dc53689a2df9fc05155f526eb944b (diff) |
fixed the shadow on the add folder/feed popup
-rw-r--r-- | css/news.css | 2 | ||||
-rw-r--r-- | js/news.js | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/css/news.css b/css/news.css index fe19bc56c..9e551a5f9 100644 --- a/css/news.css +++ b/css/news.css @@ -493,7 +493,7 @@ li.menuItem { ul.menu { position: absolute; - z-index:100; + z-index:1; margin-left: 0.3em; display: none; background:#EEEEEE; diff --git a/js/news.js b/js/news.js index df95479dc..8a82ceb0c 100644 --- a/js/news.js +++ b/js/news.js @@ -684,6 +684,7 @@ $(document).ready(function(){ var item = this; var itemOffset = $(this).position().top; if(itemOffset <= 0 || scrolled >= scrollHeight){ + // wait and check if the item is still under the top edge setTimeout(function(){ markItemAsRead(scrollArea, item);}, 1000); } }) @@ -695,7 +696,7 @@ $(document).ready(function(){ }); /** - * Marks an item as read + * Marks an item as read which is called by the timeout * @param item the dom item */ function markItemAsRead(scrollArea, item){ |