]> git.wh0rd.org - tt-rss.git/blobdiff - viewfeed.js
add tooltip with all article tags
[tt-rss.git] / viewfeed.js
index 79697d77bf4c4f8f6581eb6bce1af6a2a1667199..fd188797674f08b310f1dac4ae09fe3d0440c529 100644 (file)
@@ -992,10 +992,10 @@ function editArticleTags(id) {
                                                        var id = tags_str.id;
 
                                                        var tags = $("ATSTR-" + id);
+                                                       var tooltip = dijit.byId("ATSTRTIP-" + id);
 
-                                                       if (tags) {
-                                                               tags.innerHTML = tags_str.content;
-                                                       }
+                                                       if (tags) tags.innerHTML = tags_str.content;
+                                                       if (tooltip) tooltip.attr('label', tags_str.content_full);
 
                                                        cache_invalidate(id);
                                                }
@@ -1536,6 +1536,9 @@ function zoomToArticle(event, id) {
                        if (!event || !event.shiftKey)
                                return dijit.byId("content-tabs").selectChild(dijit.byId("ATAB-" + id));
 
+               if (dijit.byId("ATSTRTIP-" + id))
+                       dijit.byId("ATSTRTIP-" + id).destroyRecursive();
+
                if (cached_article) {
                        //closeArticlePanel();
 
@@ -2211,7 +2214,9 @@ function editArticleNote(id) {
                                                if (elem) {
                                                        Element.hide(elem);
                                                        elem.innerHTML = reply.note;
-                                                       new Effect.Appear(elem);
+
+                                                       if (reply.raw_length != 0)
+                                                               new Effect.Appear(elem);
                                                }
 
                                        }});