+ The first-run help item now has a close box (that works)

This commit is contained in:
Ian Gilman 2010-07-07 17:19:28 -07:00
parent 43ef3bc936
commit e6bcbe3409

View File

@ -78,13 +78,16 @@ window.InfoItem = function(bounds, options) {
.css(this.bounds)
.appendTo('body');
this.$contents = iQ('<div>')
.appendTo($container);
var $close = iQ('<div>')
.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);
}