Skip to content

Commit

Permalink
MINOR Hiding "insert media" tabs when editing an image (wrong selector)
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Jun 8, 2012
1 parent 210e32d commit 2ecd8a0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions javascript/HtmlEditorField.js
Expand Up @@ -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']();
Expand Down

0 comments on commit 2ecd8a0

Please sign in to comment.