This commit is contained in:
孙广明
2022-12-15 15:16:54 +08:00
parent 6fe7f03e7e
commit 4acb2e69ec
2 changed files with 4 additions and 1 deletions

View File

@@ -68,7 +68,9 @@ foreach(explode(',', $config->story->create->requiredFields) as $field)
<td class='w-60px <?php if((!$branches and $type == 'story') or $type == 'requirement') echo "hidden"; ?> switchBranch'></td>
<td colspan="2" class='<?php if($branches and $type == 'story') echo "hidden"; ?> switchBranch'>
<div class='input-group' id='moduleIdBox'>
<?php if(!$hiddenProduct):?>
<div class="input-group-addon"><?php echo $lang->story->module;?></div>
<?php endif;?>
<?php
echo html::select('module', $moduleOptionMenu, $moduleID, "class='form-control chosen'");
if(count($moduleOptionMenu) == 1)

View File

@@ -1,6 +1,7 @@
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/kindeditor.html.php';?>
<?php js::set('rawMethod', $this->app->rawMethod);?>
<?php js::set('hiddenProduct', isset($hiddenProduct) ? $hiddenProduct : false);?>
<script>
/**
* Load product.
@@ -194,7 +195,7 @@ function loadProductModules(productID, branch)
$moduleIDBox.load(moduleLink, function()
{
$moduleIDBox.find('#module').chosen();
if(typeof(storyModule) == 'string' && config.currentMethod != 'edit') $moduleIDBox.prepend("<span class='input-group-addon'>" + storyModule + "</span>");
if(typeof(storyModule) == 'string' && config.currentMethod != 'edit' && !hiddenProduct) $moduleIDBox.prepend("<span class='input-group-addon'>" + storyModule + "</span>");
$moduleIDBox.fixInputGroup();
});
}