diff --git a/module/bug/js/common.js b/module/bug/js/common.js index 6ca594d66e..c12b8db577 100644 --- a/module/bug/js/common.js +++ b/module/bug/js/common.js @@ -181,7 +181,11 @@ function loadProductModules(productID) branch = $('#branch').val(); if(typeof(branch) == 'undefined') branch = 0; link = createLink('tree', 'ajaxGetOptionMenu', 'productID=' + productID + '&viewtype=bug&branch=' + branch + '&rootModuleID=0&returnType=html&needManage=true'); - $('#moduleIdBox').load(link, function(){$(this).find('select').chosen(defaultChosenOptions)}); + $('#moduleIdBox').load(link, function() + { + $(this).find('select').chosen(defaultChosenOptions) + if(typeof(bugModule) == 'string') $('#moduleIdBox').prepend("" + bugModule + "") + }); } /** @@ -372,7 +376,7 @@ function loadProductBranches(productID) if(data) { $('#product').closest('.input-group').append(data); - $('#branch').css('width', page == 'create' ? '100px' : '65px'); + $('#branch').css('width', page == 'create' ? '120px' : '65px'); } }) } diff --git a/module/bug/view/create.html.php b/module/bug/view/create.html.php index a85656b91c..783d635992 100644 --- a/module/bug/view/create.html.php +++ b/module/bug/view/create.html.php @@ -30,15 +30,16 @@ js::set('refresh', $lang->refresh);
+bug->module);?> diff --git a/module/story/view/create.html.php b/module/story/view/create.html.php index 73966320c9..0a86aeb447 100644 --- a/module/story/view/create.html.php +++ b/module/story/view/create.html.php @@ -24,13 +24,13 @@| story->product;?> | -+ |
- type != 'normal') echo html::select('branch', $branches, $branch, "onchange='loadBranch();' class='form-control' style='width:65px'");?>
+ type != 'normal') echo html::select('branch', $branches, $branch, "onchange='loadBranch();' class='form-control' style='width:120px'");?>
|
- + |
story->module;?>
story->title;?> |
-
+ |
|
@@ -104,15 +104,15 @@
story->spec;?> |
- |
+ story->specTemplate;?> story->specTemplate;?> story->verify;?> |
-
+ |
| story->mailto;?> |
-
+ |
| story->legendAttatch;?> |
- fetch('file', 'buildform');?> |
+ fetch('file', 'buildform');?> |
| |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|