Commit 5658e6bc by polesye

Merge pull request #868 from edx/hotfix/lose_header_bug

Fix bug when editing video causes other components to lose their header
parents 08168ec6 d93215c0
<div class="base_wrapper"> <div class="component-editor">
<div class="base_wrapper">
<section class="editor-with-tabs"> <section class="editor-with-tabs">
<div class="wrapper-comp-editor" id="editor-tab-id" data-html_id='test_id'> <div class="wrapper-comp-editor" id="editor-tab-id" data-html_id='test_id'>
<div class="edit-header"> <div class="edit-header">
...@@ -29,5 +30,6 @@ ...@@ -29,5 +30,6 @@
</section> </section>
<div class="component-edit-header" style="display: block"/> <div class="component-edit-header" style="display: block"/>
</div>
</div> </div>
...@@ -65,7 +65,7 @@ describe "TabsEditingDescriptor", -> ...@@ -65,7 +65,7 @@ describe "TabsEditingDescriptor", ->
describe "editor/settings header", -> describe "editor/settings header", ->
it "is hidden", -> it "is hidden", ->
expect(@descriptor.element.find(".component-edit-header").css('display')).toEqual('none') expect(@descriptor.element.closest(".component-editor").find(".component-edit-header")).toBeHidden()
describe "TabsEditingDescriptor special save cases", -> describe "TabsEditingDescriptor special save cases", ->
beforeEach -> beforeEach ->
......
...@@ -9,7 +9,7 @@ class @TabsEditingDescriptor ...@@ -9,7 +9,7 @@ class @TabsEditingDescriptor
### ###
# hide editor/settings bar # hide editor/settings bar
$('.component-edit-header').hide() @element.closest('.component-editor').find('.component-edit-header').hide()
@$tabs = $(".tab", @element) @$tabs = $(".tab", @element)
@$content = $(".component-tab", @element) @$content = $(".component-tab", @element)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment