mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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.
This commit is contained in:
parent
71cc5d83e6
commit
d2d770c6fb
@ -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('<div class="ss-uploadfield-dialog" id="' + dialogId + '" />');
|
||||
var self = this, config = this.getConfig(), dialogId = 'ss-uploadfield-dialog-' + this.attr('id'), dialog = $('#' + dialogId);
|
||||
if(!dialog.length) dialog = $('<div class="ss-uploadfield-dialog" id="' + dialogId + '" />');
|
||||
|
||||
// If user selected 'Choose another file', we need the ID of the file to replace
|
||||
var iframeUrl = config['urlSelectDialog'];
|
||||
|
Loading…
Reference in New Issue
Block a user