From d2d770c6fbaeb3ea209853dd44017198a6232c01 Mon Sep 17 00:00:00 2001 From: Cristian Torres Date: Sun, 18 Sep 2016 19:37:44 -0600 Subject: [PATCH] FIX: Frontend UploadField wouldn't call ssdialog As in front end jQuery would be redefined by users custom version. Also the script should use the scope variable ```$``` as it represents the instance of jQuery with all the requirements loaded. --- javascript/UploadField.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'];