Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 7cb1554dd4216d12d2010fd4dc09fd7ae78218a7 1 parent b009571
@Wernervanrun authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  javascript/HtmlEditorField.js
View
3  javascript/HtmlEditorField.js
@@ -874,7 +874,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) {

1 comment on commit 7cb1554

@Wernervanrun

we only want this .ss-uploadfield-files - else we get all ss-uploadfield-files wich include the ones not related to #tinymce insertmedia

Please sign in to comment.
Something went wrong with that request. Please try again.