From 304653cd655adfb3a1a00fc7643367a4a9f3f919 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Thu, 17 May 2018 09:04:44 +0800 Subject: [PATCH] * fix bug. --- module/bug/js/common.js | 2 +- module/bug/view/edit.html.php | 8 ++++---- module/file/view/export.html.php | 8 ++++---- module/project/view/kanban.html.php | 19 +++++-------------- 4 files changed, 14 insertions(+), 23 deletions(-) diff --git a/module/bug/js/common.js b/module/bug/js/common.js index b730eda26d..6ee65a4f8d 100644 --- a/module/bug/js/common.js +++ b/module/bug/js/common.js @@ -101,7 +101,7 @@ function loadAllBuilds(that) { productID = $('#product').val(); projectID = $('#project').val(); - if(page == 'edit') buildBox = $(that).parent().prev().filter('span').attr('id'); + if(page == 'edit') buildBox = $(that).closest('.input-group').attr('id'); if(projectID) { diff --git a/module/bug/view/edit.html.php b/module/bug/view/edit.html.php index 43086c9240..d5d53b0a5a 100644 --- a/module/bug/view/edit.html.php +++ b/module/bug/view/edit.html.php @@ -216,8 +216,8 @@ js::set('oldResolvedBuild' , $bug->resolvedBuild); bug->openedBuild;?> -
- openedBuild, 'size=4 multiple=multiple class="chosen form-control"');?> +
+ openedBuild, 'size=4 multiple=multiple class="chosen form-control"');?> bug->allBuilds, "class='btn btn-default' onclick='loadAllBuilds(this)'")?>
@@ -233,8 +233,8 @@ js::set('oldResolvedBuild' , $bug->resolvedBuild); bug->resolvedBuild;?> -
- resolvedBuild, "class='form-control chosen'");?> +
+ resolvedBuild, "class='form-control chosen'");?> bug->allBuilds, "class='btn btn-default' onclick='loadAllBuilds(this)'")?>
diff --git a/module/file/view/export.html.php b/module/file/view/export.html.php index a82b8c2f7a..0a4df725aa 100644 --- a/module/file/view/export.html.php +++ b/module/file/view/export.html.php @@ -121,7 +121,7 @@ $(document).ready(function()

export;?>

-
+ - - @@ -144,7 +144,7 @@ $(document).ready(function() fetch('file', 'buildExportTPL', 'module=' . $this->moduleName);?> -
@@ -133,10 +133,10 @@ $(document).ready(function() exportFileTypeList, '', 'onchange=switchEncode(this.value) class="form-control"');?> + charsets[$this->cookie->lang], 'utf-8', key($lang->exportFileTypeList) == 'csv' ? "class='form-control'" : "class='form-control'");?> + exportTypeList, 'all', "class='form-control'");?> '> + '>
export, "onclick='setDownloading();' ");?> diff --git a/module/project/view/kanban.html.php b/module/project/view/kanban.html.php index 6dedb79aaa..23b42db1f7 100644 --- a/module/project/view/kanban.html.php +++ b/module/project/view/kanban.html.php @@ -12,20 +12,11 @@