diff --git a/javascript/UploadField.js b/javascript/UploadField.js index 38cca8dd7..a7d00855c 100644 --- a/javascript/UploadField.js +++ b/javascript/UploadField.js @@ -263,8 +263,8 @@ }, openSelectDialog: function(uploadedFile) { // Create dialog and load iframe - var self = this, config = this.getConfig(), dialogId = 'ss-uploadfield-dialog-' + this.attr('id'), dialog = jQuery('#' + dialogId); - if(!dialog.length) dialog = jQuery('
'); + var self = this, config = this.getConfig(), dialogId = 'ss-uploadfield-dialog-' + this.attr('id'), dialog = $('#' + dialogId); + if(!dialog.length) dialog = $('
'); // If user selected 'Choose another file', we need the ID of the file to replace var iframeUrl = config['urlSelectDialog'];