this._buttonSelector.children('p.button').click($.proxy(this._validateLimit, this));
this._fileListSelector.find('.jsButtonInsertAttachment').click($.proxy(this._insert, this));
+
+ WCF.DOMNodeRemovedHandler.addCallback('WCF.Attachment.Upload', $.proxy(this._removeLimitError, this));
},
/**
return true;
},
+ /**
+ * Removes the limit error message.
+ *
+ * @param object event
+ */
+ _removeLimitError: function(event) {
+ var $target = $(event.target);
+ if ($target.is('li.box48') && $target.parent().wcfIdentify() === this._fileListSelector.wcfIdentify()) {
+ this._buttonSelector.next('small.innerError').remove();
+ }
+ },
/**
* @see WCF.Upload._upload()