Bug 596450 - DOM attribute for the tab node needed which references the tabgroup; r=ttaubert

This commit is contained in:
Raymond Lee 2011-09-07 16:54:59 +08:00
parent 804ba7cad5
commit ede9b95c13

View File

@ -122,6 +122,7 @@ function GroupItem(listOfEls, options) {
this.isDragging = false;
$container
.css({zIndex: -100})
.attr("data-id", this.id)
.appendTo("body");
// ___ Resizer
@ -1050,6 +1051,7 @@ GroupItem.prototype = Utils.extend(new Item(), new Subscribable(), {
item.addSubscriber("close", this._onChildClose);
item.setParent(this);
$el.attr("data-group", this.id);
if (typeof item.setResizable == 'function')
item.setResizable(false, options.immediately);
@ -1135,6 +1137,7 @@ GroupItem.prototype = Utils.extend(new Item(), new Subscribable(), {
this._activeTab = null;
}
$el[0].removeAttribute("data-group");
item.setParent(null);
item.removeClass("stacked");
item.isStacked = false;