diff --git a/javascript/UploadField.js b/javascript/UploadField.js index 8ae2366f9..2a00e33c2 100644 --- a/javascript/UploadField.js +++ b/javascript/UploadField.js @@ -30,6 +30,8 @@ Config: null, onmatch: function() { + if(this.is('.readonly,.disabled')) return; + var fileInput = this.find('input'); var dropZone = this.find('.ss-uploadfield-dropzone'); var config = $.parseJSON(fileInput.data('config').replace(/'/g,'"'));