Skip to content

Commit

Permalink
BUG Insert Media, inserts all previous media (fixes #7545)
Browse files Browse the repository at this point in the history
  • Loading branch information
UndefinedOffset authored and chillu committed Nov 23, 2012
1 parent aa72425 commit 4310718
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions javascript/HtmlEditorField.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4310718

Please sign in to comment.