Bug 717110 - [New Tab Page] Tooltips should be added to page thumbnails; r=dao

This commit is contained in:
Tim Taubert 2012-01-25 23:45:16 +01:00
parent 6fd612f68a
commit 9e7d8759aa

View File

@ -120,8 +120,10 @@ Site.prototype = {
* Renders the site's data (fills the HTML fragment).
*/
_render: function Site_render() {
let title = this.title || this.url;
this.node.setAttribute("title", title);
this.node.setAttribute("href", this.url);
this._querySelector(".site-title").textContent = this.title || this.url;
this._querySelector(".site-title").textContent = title;
if (this.isPinned())
this._updateAttributes(true);