// only update content if element id is active
if (this._activeElementID === elementID) {
+ WCF.DOMNodeInsertedHandler.enable();
+
if (animate) {
// get current dimensions
var $dimensions = this._popoverContent.getDimensions();
// insert new content
+ this._popoverContent.css({
+ height: 'auto',
+ width: 'auto'
+ });
this._popoverContent.html(this._data[elementID].content);
var $newDimensions = this._popoverContent.getDimensions();
height: $newDimensions.height + 'px',
width: $newDimensions.width + 'px'
}, 300, function() {
+ WCF.DOMNodeInsertedHandler.enable();
+
self._popoverContent.html(self._data[elementID].content).css({ opacity: 0 }).animate({ opacity: 1 }, 200);
+
+ WCF.DOMNodeInsertedHandler.disable();
});
}
else {
// insert new content
this._popoverContent.html(this._data[elementID].content);
}
+
+ WCF.DOMNodeInsertedHandler.disable();
}
},