Permalink
Browse files

BUG Insert Media, inserts all previous media (fixes #7545)

  • Loading branch information...
UndefinedOffset authored and chillu committed Nov 23, 2012
1 parent aa72425 commit 4310718b948e2620a93e6876d02b186a71b0dc94
Showing with 1 addition and 0 deletions.
  1. +1 −0 javascript/HtmlEditorField.js
@@ -805,6 +805,7 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
resetFields: function() {
this.find('.ss-htmleditorfield-file').remove(); // Remove any existing views
this.find('.ss-gridfield-items .ui-selected').removeClass('ui-selected'); // Unselect all items
+ this.find('li.ss-uploadfield-item').remove(); // Remove all selected items
this.redraw();
this._super();

0 comments on commit 4310718

Please sign in to comment.