Mercurial > planet-ubiquity-redesign
changeset 29:31fa3c03cda3
Tooltip of feed entry links now contains content snippet.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Tue, 03 Mar 2009 07:04:52 -0800 |
parents | 8df874718919 |
children | eee8b9a861a8 |
files | about-mozilla.js |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/about-mozilla.js Tue Mar 03 06:51:43 2009 -0800 +++ b/about-mozilla.js Tue Mar 03 07:04:52 2009 -0800 @@ -64,7 +64,12 @@ '<span class="title"></span> ' + '<span class="author"></span></div>'); $('.title', item).html(this.title); - $('.title', item).wrap('<a href="' + this.link + '"></a>'); + var linkTitle = ""; + if (this.contentSnippet) + linkTitle =this.contentSnippet ; + var link = $('<a title="' + linkTitle + '" href="' + + this.link + '"></a>'); + $('.title', item).wrap(link); if (this.author) { var author = this.author; var authorFilters = [