Skip to content

Commit

Permalink
Fix justify megamenu alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
joomlart committed Jan 6, 2014
1 parent 1b9514e commit c5a761c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions source/plg_system_t3/base-bs3/js/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@
align_delta = 0,
align_trans = 0;

if(align == 'justify'){
return; //do nothing
}

if(!align){
align = 'left';
}
Expand Down
4 changes: 4 additions & 0 deletions source/plg_system_t3/base/js/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@
align_delta = 0,
align_trans = 0;

if(align == 'justify'){
return; //do nothing
}

if(!align){
align = 'left';
}
Expand Down
2 changes: 1 addition & 1 deletion source/plg_system_t3/includes/menu/megamenu.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ static function beginmega($vars)
$data = '';
if (isset($setting['class'])) $data .= " data-class=\"{$setting['class']}\"";
if (isset($setting['alignsub']) && $setting['alignsub'] == 'justify') {
$cls .= " span12";
$cls .= ' ' . ($vars['menu']->editmode ? 'span' : T3_BASE_NONRSP_WIDTH_PREFIX) . '12';
} else {
if (isset($sub['width'])) {
if ($item->dropdown) $style = ' style="width: ' . str_replace('px', '', $sub['width']) . 'px"';
Expand Down

0 comments on commit c5a761c

Please sign in to comment.