FIX: panel hide on Actions click

This commit is contained in:
Kate Brown 2015-03-19 12:00:17 +13:00
parent 8a6e580270
commit 0aea267496
1 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@
$('#Actions ul li').entwine({
onclick: function(e) {
console.log('LI CLICKED');
//console.log('LI CLICKED');
//add active state to the current button
$('#Actions ul li').removeClass('dms-active');
@ -45,11 +45,11 @@
//hide all inner field sections
var panel = $('.ActionsPanel:first');
panel.find('div.fieldgroup-field').hide();
panel.find('div.fieldgroup').hide();
//show the correct group of controls
//panel.find('.'+this.data('panel')).closest('div.fieldgroup').show();
panel.find('.'+this.data('panel')).show().parents('.fieldgroup-field').show();
panel.find('.'+this.data('panel')).show().parents('.fieldgroup').show();
}
});