diff --git a/module/project/css/common.css b/module/project/css/common.css index 972d5b69df..5469b16187 100644 --- a/module/project/css/common.css +++ b/module/project/css/common.css @@ -1 +1,2 @@ .mgr-5px{margin-right:5px;} +#productsBox .col-sm-3{margin-bottom:5px;} diff --git a/module/project/js/create.js b/module/project/js/create.js index 20a3c65cd4..c663b9f235 100644 --- a/module/project/js/create.js +++ b/module/project/js/create.js @@ -7,7 +7,12 @@ $(function() { $('#cpmBtn').click(function(){$('#copyProjectModal').modal('show')}); $('#copyProjects a').click(function(){setCopyProject($(this).data('id')); $('#copyProjectModal').modal('hide')}); - $('#productsBox .col-sm-3').width($('#type').closest('td').width()); + var typeWidth = $('#type').closest('td').width(); + $('#productsBox .col-sm-3').width(typeWidth); + $(document).on('change', "#productsBox select", function() + { + $('#productsBox .col-sm-3').width(typeWidth); + }); }); function showTypeTips()