* finish task #2202.
This commit is contained in:
@@ -4,3 +4,6 @@
|
||||
.outer .chosen-container-single + .input-group-btn > .btn {border-left: 0}
|
||||
.outer .input-group {display: block; padding-right: 29px; max-width: 100%;}
|
||||
.outer .input-group-btn {display: block; position: absolute; right: 0; width: 29px; top: 0}
|
||||
.chosen-container[id^="story"] {width: 200px;}
|
||||
.chosen-container[id^="story"] .chosen-drop {min-width: 450px;!important}
|
||||
.chosen-container[id^="module"] .chosen-drop {min-width: 400px;!important}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
.chosen-container[id^="module"] .chosen-drop {min-width: 400px;!important}
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
var storyChosenOptions = $.extend({}, defaultChosenOptions, {drop_width: 400, width: '200px'});
|
||||
|
||||
$(function() {
|
||||
for(i = 0; i < batchCreateNum; i++) $("#story" + i).chosen(storyChosenOptions);
|
||||
});
|
||||
|
||||
/* Get select of stories.*/
|
||||
function setStories(moduleID, projectID, num)
|
||||
{
|
||||
@@ -15,8 +9,7 @@ function setStories(moduleID, projectID, num)
|
||||
$('#story' + num).replaceWith(stories);
|
||||
if(moduleID == 0) $('#story' + num).append("<option value='ditto'>" + ditto + "</option>")
|
||||
$('#story' + num).val(storyID);
|
||||
$('#story' + num + '_chosen').remove();
|
||||
$("#story" + num).chosen(storyChosenOptions);
|
||||
$("#story" + num).chosen(defaultChosenOptions);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -1,17 +1,16 @@
|
||||
<?php
|
||||
/**
|
||||
* The batch create view of story module of ZenTaoPMS.
|
||||
* The batch create view of task module of ZenTaoPMS.
|
||||
*
|
||||
* @copyright Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
|
||||
* @license ZPL (http://zpl.pub/page/zplv11.html)
|
||||
* @author Yangyang Shi <shiyangyang@cnezsoft.com>
|
||||
* @package story
|
||||
* @package task
|
||||
* @version $Id$
|
||||
* @link http://www.zentao.net
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php js::set('batchCreateNum', $config->task->batchCreate);?>
|
||||
<div id='titlebar'>
|
||||
<div class='heading'>
|
||||
<span class='prefix'><?php echo html::icon($lang->icons['task']);?></span>
|
||||
@@ -61,7 +60,7 @@
|
||||
<td style='overflow:visible'><?php echo html::select("module[$i]", $modules, $module, "class='form-control chosen' onchange='setStories(this.value, $project->id, $i)'")?></td>
|
||||
<td style='overflow: visible'>
|
||||
<div class='input-group'>
|
||||
<?php echo html::select("story[$i]", $stories, $currentStory, "class='form-control' onchange='setStoryRelated($i)'");?>
|
||||
<?php echo html::select("story[$i]", $stories, $currentStory, "class='form-control chosen' onchange='setStoryRelated($i)'");?>
|
||||
<span class='input-group-btn'>
|
||||
<a href='javascript:copyStoryTitle(<?php echo $i;?>)' class='btn' title='<?php echo $lang->task->copyStoryTitle; ?>'><i class='icon-angle-right'></i></a>
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user