Author: andrei_exadel
Date: 2008-03-24 04:47:24 -0400 (Mon, 24 Mar 2008)
New Revision: 7100
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
RF-2639
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
===================================================================
---
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-03-24
03:08:32 UTC (rev 7099)
+++
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-03-24
08:47:24 UTC (rev 7100)
@@ -711,15 +711,14 @@
disableAddButton: function() {
var disabled = ((this.getFileEntriesSumByState(FileUploadEntry.READY,
FileUploadEntry.INITIALIZED, FileUploadEntry.UPLOAD_CANCELED) + this.uploadedCount) >=
this.maxFileBatchSize);
this.currentInput.disabled = disabled || this.disabled;
+ var _disabled = this.disabled;
var d1 = $(this.id+":add1");
var d2 = $(this.id+":add2");
if (disabled) {
- Element.hide(d1.parentNode);
- return;
- } else {
- Element.show(d1.parentNode);
+ this.disabled = true;
}
this._updateClassNames(d1, d2, this.classes.ADD, this.classes.ADD_CONTENT);
+ this.disabled = _disabled;
},
disableUploadButton: function () {
Show replies by date