mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-30 21:29:23 +02: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
|
//get the uploaded file ID when this event triggers, signaling the upload has compeleted successfully
|
||||||
editFieldIDs.push($(this).data('id'));
|
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(){
|
uploadedFiles.each(function(){
|
||||||
var uploadedID = $(this).data('fileid');
|
var uploadedID = $(this).data('fileid');
|
||||||
if ($.inArray(uploadedID, editFieldIDs) == -1) {
|
if ($.inArray(uploadedID, editFieldIDs) == -1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user