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

This commit is contained in:
UndefinedOffset 2012-11-23 12:33:17 -04:00 committed by Ingo Schommer
parent aa72425e84
commit 4310718b94

View File

@ -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();