diff --git a/module/project/js/create.js b/module/project/js/create.js index da5dc16640..050455ba33 100644 --- a/module/project/js/create.js +++ b/module/project/js/create.js @@ -38,7 +38,14 @@ $(function() var adjustMainCol = function() { - $('.main-form .col-main').css('width', Math.max(250, Math.floor(($('#productsBox').outerWidth() - 50)/3) + 10)); + if(isStage) + { + $('.main-form .col-main').css('width', Math.max(250, Math.floor(($('#productBox').outerWidth() - 50)/3) + 10)); + } + else + { + $('.main-form .col-main').css('width', Math.max(250, Math.floor(($('#productsBox').outerWidth() - 50)/3) + 10)); + } }; adjustMainCol(); $(window).on('resize', adjustMainCol); diff --git a/module/project/view/create.html.php b/module/project/view/create.html.php index fcbe9be51e..692c200fb9 100644 --- a/module/project/view/create.html.php +++ b/module/project/view/create.html.php @@ -35,6 +35,7 @@ project->placeholder);?> project->errorSameProducts);?> +