From 785813adeeadc5d8fce2979c2ba7dfdb26e6aac8 Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Fri, 25 Feb 2011 08:45:48 +0000 Subject: [PATCH] * splite the css and js. * rewrite the ui. --- module/bug/css/customfields.css | 2 ++ module/bug/css/report.css | 1 + module/bug/js/customfields.js | 5 +++ module/bug/js/report.js | 20 +++++++++++ module/bug/view/report.html.php | 59 ++++++++++----------------------- 5 files changed, 46 insertions(+), 41 deletions(-) create mode 100644 module/bug/css/customfields.css create mode 100644 module/bug/css/report.css create mode 100644 module/bug/js/customfields.js create mode 100644 module/bug/js/report.js diff --git a/module/bug/css/customfields.css b/module/bug/css/customfields.css new file mode 100644 index 0000000000..3a8413f3b7 --- /dev/null +++ b/module/bug/css/customfields.css @@ -0,0 +1,2 @@ +body{background:white; overflow:hidden;} +.button-c {width:60px} diff --git a/module/bug/css/report.css b/module/bug/css/report.css new file mode 100644 index 0000000000..616418b2d5 --- /dev/null +++ b/module/bug/css/report.css @@ -0,0 +1 @@ +span {display:block} diff --git a/module/bug/js/customfields.js b/module/bug/js/customfields.js new file mode 100644 index 0000000000..d40eaa6367 --- /dev/null +++ b/module/bug/js/customfields.js @@ -0,0 +1,5 @@ +function restoreDefault() +{ + $('#customFields option').remove(); + $('#defaultFields option').clone().appendTo('#customFields'); +} diff --git a/module/bug/js/report.js b/module/bug/js/report.js new file mode 100644 index 0000000000..c8c6103f9a --- /dev/null +++ b/module/bug/js/report.js @@ -0,0 +1,20 @@ +/* Select All. */ +function checkAll() +{ + var checkOBJ = $('input'); + for(var i = 0; i < checkOBJ.length; i++) + { + checkOBJ.get(i).checked = true; + } +} + +/* Check reverse. */ +function checkReverse() +{ + var checkOBJ = $('input'); + for(var i = 0; i < checkOBJ.length; i++) + { + checkOBJ.get(i).checked = !checkOBJ.get(i).checked; + } + return; +} diff --git a/module/bug/view/report.html.php b/module/bug/view/report.html.php index 4b7829dd89..2c77bc9eee 100644 --- a/module/bug/view/report.html.php +++ b/module/bug/view/report.html.php @@ -11,30 +11,6 @@ */ ?> - - -
bug->report->common;?>
@@ -42,20 +18,21 @@ function checkReverse()
-
-
-
bug->report->select;?>
-
-
- bug->report->charts, $checkedCharts);?> - - -

- bug->report->create);?> -
-
-
-
+ + + + + + +
+
bug->report->select;?>
+
+ + bug->report->charts, $checkedCharts);?> + + +

+ bug->report->create);?> +
+
$chartContent):?> @@ -80,8 +57,8 @@ function checkReverse()
bug->report->common;?>
- - - +