mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #6025 from tony13tv/patch-3
FIX: Frontend UploadField wouldn't call ssdialog
This commit is contained in:
commit
e93a376332
@ -263,8 +263,8 @@
|
|||||||
},
|
},
|
||||||
openSelectDialog: function(uploadedFile) {
|
openSelectDialog: function(uploadedFile) {
|
||||||
// Create dialog and load iframe
|
// Create dialog and load iframe
|
||||||
var self = this, config = this.getConfig(), dialogId = 'ss-uploadfield-dialog-' + this.attr('id'), dialog = jQuery('#' + dialogId);
|
var self = this, config = this.getConfig(), dialogId = 'ss-uploadfield-dialog-' + this.attr('id'), dialog = $('#' + dialogId);
|
||||||
if(!dialog.length) dialog = jQuery('<div class="ss-uploadfield-dialog" id="' + 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
|
// If user selected 'Choose another file', we need the ID of the file to replace
|
||||||
var iframeUrl = config['urlSelectDialog'];
|
var iframeUrl = config['urlSelectDialog'];
|
||||||
|
Loading…
Reference in New Issue
Block a user