* Adjust code style.

This commit is contained in:
tianshujie98
2020-11-27 17:54:04 +08:00
parent efb7512d13
commit 7600f463e9
2 changed files with 10 additions and 2 deletions
+8 -1
View File
@@ -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);
+2 -1
View File
@@ -35,6 +35,7 @@
<?php js::set('holders', $lang->project->placeholder);?>
<?php js::set('errorSameProducts', $lang->project->errorSameProducts);?>
<?php js::set('productID', empty($productID) ? 0 : $productID);?>
<?php js::set('isStage', $isStage);?>
<div id='mainContent' class='main-content'>
<div class='center-block'>
<div class='main-header'>
@@ -116,7 +117,7 @@
<?php $this->printExtendFields('', 'table', 'columns=3');?>
<tr>
<th><?php echo $lang->project->manageProducts;?></th>
<td class='text-left' id="<?php echo $isStage ? '' : 'productsBox';?>" colspan="3">
<td class='text-left' id="<?php echo $isStage ? 'productBox' : 'productsBox';?>" colspan="3">
<div class='row'>
<?php $i = 0;?>
<?php foreach($products as $product):?>