##// END OF EJS Templates
Fixed that JS warning is not displayed when attachment maximum size is 0 (#13949)....
Jean-Philippe Lang -
r11611:288c3b863ddf
parent child
Show More
@@ -141,7 +141,7 function uploadAndAttachFiles(files, inputEl) {
141 141
142 142 var sizeExceeded = false;
143 143 $.each(files, function() {
144 if (this.size && maxFileSize && this.size > parseInt(maxFileSize)) {sizeExceeded=true;}
144 if (this.size && maxFileSize != null && this.size > parseInt(maxFileSize)) {sizeExceeded=true;}
145 145 });
146 146 if (sizeExceeded) {
147 147 window.alert(maxFileSizeExceeded);
General Comments 0
You need to be logged in to leave comments. Login now