diff --git a/module/bug/js/create.js b/module/bug/js/create.js index 0b407a1f5e..ae0891a742 100644 --- a/module/bug/js/create.js +++ b/module/bug/js/create.js @@ -122,25 +122,17 @@ $(function() var adjustBugTypeGroup = function() { var $group = $('#bugTypeInputGroup'); - var width = $group.width(), addonWidth = 0; + var width = ($group.parent().width() - 10), addonWidth = 0; var $controls = $group.find('.chosen-single'); $group.children('.input-group-addon').each(function() { addonWidth += $(this).outerWidth(); }); - $controls.css('width', Math.floor((width - addonWidth)/$controls.length)); + var bestWidth = Math.floor((width - addonWidth)/$controls.length); + $controls.css('width', bestWidth); + var lastWidth = width - addonWidth - bestWidth * ($controls.length - 1); + $controls.last().css('width', lastWidth); }; adjustBugTypeGroup(); - - // adjust style for file box - var ajustFilebox = function() - { - applyCssStyle('.fileBox > tbody > tr > td:first-child {transition: none; width: ' + ($('#contactListGroup').width() - 2) + 'px}', 'filebox') - }; - ajustFilebox(); - $(window).resize(function() - { - ajustFilebox(); - adjustBugTypeGroup(); - }); + $(window).on('resize', adjustBugTypeGroup); }); diff --git a/module/bug/view/edit.html.php b/module/bug/view/edit.html.php index 1c8e8a23c9..838805c157 100644 --- a/module/bug/view/edit.html.php +++ b/module/bug/view/edit.html.php @@ -177,10 +177,8 @@ js::set('oldResolvedBuild' , $bug->resolvedBuild); bug->mailto;?> -
mailto), 'class="form-control chosen" multiple');?> -
fetch('my', 'buildContactLists');?>
-
+ fetch('my', 'buildContactLists');?> diff --git a/module/common/model.php b/module/common/model.php index 368c5a97bf..ee36d995e3 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -437,7 +437,6 @@ class commonModel extends model { global $lang, $app; - if(isset($lang->menugroup->$moduleName)) $moduleName = $lang->menugroup->$moduleName; if(!isset($lang->$moduleName->menu)) { echo ""; @@ -454,6 +453,7 @@ class commonModel extends model /* The beginning of the menu. */ echo $isMobile ? '' : "