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 19c86cbf99
commit 1aef427386

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);