diff options
author | Andrew Dolgov <[email protected]> | 2011-04-19 14:54:27 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-04-19 14:54:27 +0400 |
commit | 0780f4f4fdb88df7982c179ac581db5fb64aef7f (patch) | |
tree | eacfa48c6831487acffd03eeee65b292871ccf7d /viewfeed.js | |
parent | e4f7c976225a7b8d0ad6715a19572b781c515302 (diff) |
add tooltip with all article tags
Diffstat (limited to 'viewfeed.js')
-rw-r--r-- | viewfeed.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/viewfeed.js b/viewfeed.js index a5ca881c6..fd1887976 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -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(); |