Skip to content

Commit

Permalink
Megamenu Admin: (fix) Extra Class is not filled in textbox when item …
Browse files Browse the repository at this point in the history
…is selected
  • Loading branch information
joomlart committed Feb 2, 2013
1 parent b939cac commit 2df7702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/plg_system_t3/admin/megamenu/js/megamenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,12 +469,12 @@ var T3AdminMegamenu = window.T3AdminMegamenu || {};
$('#t3-admin-mm-tb .active').removeClass('active');
switch (type) {
case 'item':
$('.toolitem-exclass').attr('value', currentSelected.data ('class') || '');
// value for toggle
var liitem = currentSelected.closest('li'),
liparent = liitem.parent().closest('li'),
sub = liitem.find ('.nav-child:first');

$('.toolitem-exclass').attr('value', liitem.data ('class') || '');
// toggle Submenu
var toggle = $('.toolitem-sub');
toggle.find('label').removeClass('active btn-success btn-danger btn-primary');
Expand Down

0 comments on commit 2df7702

Please sign in to comment.