mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Hiding "insert media" tabs when editing an image (wrong selector)
This commit is contained in:
parent
210e32d631
commit
2ecd8a0cc4
@ -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']();
|
||||
|
Loading…
Reference in New Issue
Block a user