Skip to content

Commit

Permalink
Fixes Smile-SA#1209 attribute edit options panel (2/2)
Browse files Browse the repository at this point in the history
w/o Swatches. Synchronized overriden file with original, but original is not working.
  • Loading branch information
rbayet committed Nov 30, 2018
1 parent 06f37a2 commit 0c87dca
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,16 @@

function checkOptionsPanelVisibility(){
if($('manage-options-panel')){
var panel = $('manage-options-panel').up('.fieldset');
var panel = $('manage-options-panel').up('.fieldset'),
activePanelClass = 'selected-type-options';

if($('frontend_input') && ($('frontend_input').value=='select' || $('frontend_input').value=='multiselect')){
panel.show();
panel.addClass(activePanelClass);
}
else {
panel.hide();
panel.removeClass(activePanelClass);
}
}
}
Expand Down

0 comments on commit 0c87dca

Please sign in to comment.