mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Update javascript/HtmlEditorField.js
we only want this .ss-uploadfield-files - else we get all ss-uploadfield-files wich include the ones not related to #tinymce insertmedia
This commit is contained in:
parent
b8e5ebb9e3
commit
fade5cce51
@ -900,7 +900,8 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
|
||||
//get the uploaded file ID when this event triggers, signaling the upload has compeleted successfully
|
||||
editFieldIDs.push($(this).data('id'));
|
||||
});
|
||||
var uploadedFiles = form.find('.ss-uploadfield-files').children('.ss-uploadfield-item');
|
||||
// we only want this .ss-uploadfield-files - else we get all ss-uploadfield-files wich include the ones not related to #tinymce insertmedia
|
||||
var uploadedFiles = $('.ss-uploadfield-files', this).children('.ss-uploadfield-item');
|
||||
uploadedFiles.each(function(){
|
||||
var uploadedID = $(this).data('fileid');
|
||||
if ($.inArray(uploadedID, editFieldIDs) == -1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user