MINOR Hiding "insert media" tabs when editing an image (wrong selector)

This commit is contained in:
Ingo Schommer 2012-06-08 17:05:07 +02:00
parent 210e32d631
commit 2ecd8a0cc4

View File

@ -722,9 +722,8 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
.button(hasItems ? 'enable' : 'disable')
.toggleClass('ui-state-disabled', !hasItems);
// Hide file selection and step labels when editing an existing file
this.find('#MediaFormInsertImageTabs,.header-edit')[editingSelected ? 'hide' : 'show']();
this.find('#MediaFormInsertMediaTabs,.header-edit')[editingSelected ? 'hide' : 'show']();
var updateExisting = Boolean(this.find('.ss-htmleditorfield-file').length);
this.find('.htmleditorfield-mediaform-heading.insert')[updateExisting ? 'hide' : 'show']();