From e6bcbe340999933e5595605dc878461240b007b4 Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Wed, 7 Jul 2010 17:19:28 -0700 Subject: [PATCH] + The first-run help item now has a close box (that works) --- browser/base/content/tabcandy/app/infoitems.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/browser/base/content/tabcandy/app/infoitems.js b/browser/base/content/tabcandy/app/infoitems.js index dc0ef9fc2d5..3eb00caa812 100644 --- a/browser/base/content/tabcandy/app/infoitems.js +++ b/browser/base/content/tabcandy/app/infoitems.js @@ -78,13 +78,16 @@ window.InfoItem = function(bounds, options) { .css(this.bounds) .appendTo('body'); + this.$contents = iQ('
') + .appendTo($container); + var $close = iQ('
') .addClass('close') .click(function() { self.close(); }) .appendTo($container); - + // ___ locking if(this.locked.bounds) $container.css({cursor: 'default'}); @@ -246,7 +249,7 @@ window.InfoItem.prototype = iQ.extend(new Item(), new Subscribable(), { html: function(value) { try { Utils.assertThrow('value must be a string', typeof(value) == 'string'); - iQ(this.container).html(value); + this.$contents.html(value); } catch(e) { Utils.log(e); }