diff --git a/module/file/view/download.html.php b/module/file/view/download.html.php index 3b913a9917..ee649ef236 100644 --- a/module/file/view/download.html.php +++ b/module/file/view/download.html.php @@ -23,7 +23,7 @@ $fileContent = file_get_contents($file->realPath); if($charset != $config->charset) { - $fileContent = helper::convertEncoding($fileContent, $charset, $config->charset); + $fileContent = helper::convertEncoding($fileContent, $charset . "//IGNORE", $config->charset); } else { diff --git a/module/testtask/js/common.js b/module/testtask/js/common.js index 63032b82b1..fcee896bf6 100644 --- a/module/testtask/js/common.js +++ b/module/testtask/js/common.js @@ -20,3 +20,11 @@ $(document).ready(function() } }); }) + +function adjustPriBoxWidth() +{ + var boxWidth = $('#ownerAndPriBox').width(); + var beginWidth = $("input[name='begin']").outerWidth(); + var addonWidth = $('#ownerAndPriBox .input-group-addon').outerWidth(); + $('#pri,#pri_chosen .chosen-single').css('width', boxWidth - beginWidth -addonWidth); +} diff --git a/module/testtask/js/create.js b/module/testtask/js/create.js index 637c69a1d4..2d2f0f5c45 100755 --- a/module/testtask/js/create.js +++ b/module/testtask/js/create.js @@ -61,5 +61,5 @@ function suitEndDate() /* If the mouse hover over the manage contacts button, give tip. */ $(function() { - $('[data-toggle=tooltip]').tooltip(); + adjustPriBoxWidth(); }); diff --git a/module/testtask/js/edit.js b/module/testtask/js/edit.js index ae6af5abce..c312df3585 100755 --- a/module/testtask/js/edit.js +++ b/module/testtask/js/edit.js @@ -27,12 +27,5 @@ function loadProjectBuilds(projectID) $(function() { - var adjustPriBoxWidth = function() - { - var boxWidth = $('#ownerAndPriBox').width(); - var beginWidth = $("input[name='begin']").outerWidth(); - var addonWidth = $('#ownerAndPriBox .input-group-addon').outerWidth(); - $('#pri').css('width', boxWidth - beginWidth -addonWidth); - }; - adjustPriBoxWidth();//Adjust testtask pri box width. + adjustPriBoxWidth(); }) diff --git a/module/testtask/view/create.html.php b/module/testtask/view/create.html.php index a968fcb883..e0630e34e4 100644 --- a/module/testtask/view/create.html.php +++ b/module/testtask/view/create.html.php @@ -14,80 +14,83 @@ -
-
-
- icons['testtask']);?> - icons['create']);?> testtask->create;?> +
+
+
+

testtask->create;?>

+
+ + + + + + + + + + + + + config->global->flow != 'onlyTest'):?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
testtask->product;?>
testtask->product;?>
testtask->project;?>
testtask->build;?>
testtask->owner;?> +
+ + testtask->pri;?> + testtask->priList, 0, "class='form-control chosen'");?> +
+
testtask->begin;?> +
+ + testtask->end;?> + +
+
testtask->status;?>testtask->statusList, '', "class='form-control chosen'");?>
testtask->name;?>
testtask->desc;?>
testtask->mailto;?> +
+ fetch('my', 'buildContactLists'); + ?> +
+
+
-
- - - - - - - - - - - - - config->global->flow != 'onlyTest'):?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
testtask->product;?>
testtask->product;?>
testtask->project;?>
testtask->build;?>
testtask->owner;?>
testtask->pri;?>testtask->priList, 0, "class='form-control'");?>
testtask->begin;?>
testtask->end;?>
testtask->status;?>testtask->statusList, '', "class='form-control'");?>
testtask->name;?>
testtask->desc;?>
testtask->mailto;?> -
- fetch('my', 'buildContactLists'); - ?> -
-
-
diff --git a/module/testtask/view/edit.html.php b/module/testtask/view/edit.html.php index 81508e6115..705a3ebba8 100644 --- a/module/testtask/view/edit.html.php +++ b/module/testtask/view/edit.html.php @@ -13,75 +13,76 @@ -
-
-
- icons['testtask']);?> - createLink('testtask', 'view', 'taskID=' . $task->id), $task->name, '_blank');?> - testtask->edit;?> icons['edit']);?> +
+
+
+

+ createLink('testtask', 'view', 'taskID=' . $task->id), $task->name, '_blank');?> + arrow . $lang->testtask->edit;?> +

+
+ + config->global->flow != 'onlyTest'):?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
testtask->project;?> + project, "class='form-control chosen' onchange='loadProjectRelated(this.value)'");?> +
testtask->build;?>build, "class='form-control chosen'");?>
testtask->owner;?> +
+ owner, "class='form-control chosen'");?> + testtask->pri;?> + testtask->priList, $task->pri, "class='form-control chosen'");?> +
+
testtask->begin;?> +
+ begin, "class='form-control form-date'");?> + testtask->end;?> + end, "class='form-control form-date'");?> +
+
testtask->status;?>testtask->statusList, $task->status, "class='form-control chosen'");?>
testtask->name;?>name, "class='form-control' autocomplete='off'");?>
testtask->desc;?>desc), "rows=10 class='form-control'");?>
testtask->mailto;?> +
+ mailto), "multiple class='form-control'");?> + +
+
product);?>
+
-
- - config->global->flow != 'onlyTest'):?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
testtask->project;?> - project, "class='form-control chosen' onchange='loadProjectRelated(this.value)'");?> -
testtask->build;?>build, "class='form-control chosen'");?>
testtask->owner;?> -
- owner, "class='form-control chosen'");?> - testtask->pri;?> - testtask->priList, $task->pri, "class='form-control'");?> -
-
testtask->begin;?> -
- begin, "class='form-control form-date'");?> - testtask->end;?> - end, "class='form-control form-date'");?> -
-
testtask->status;?>testtask->statusList, $task->status, "class='form-control'");?>
testtask->name;?>name, "class='form-control' autocomplete='off'");?>
testtask->desc;?>desc), "rows=10 class='form-control'");?>
testtask->mailto;?> -
- mailto), "multiple class='form-control'");?> - -
-
product);?>
-
diff --git a/module/todo/css/create.css b/module/todo/css/create.css index d2f9f434f0..2a9a6facd0 100644 --- a/module/todo/css/create.css +++ b/module/todo/css/create.css @@ -1,3 +1,5 @@ #begin_chosen{width:50% !important;} .switchDate{border-left: none;} #end_chosen .chosen-single{border-left: none;} +.cycleConfig .checkbox-primary{float:left; width:100px;} +.cycleConfig .tab-pane{padding:8px 0px;} diff --git a/module/todo/view/create.html.php b/module/todo/view/create.html.php index 42c1054f96..44ff2e67b4 100644 --- a/module/todo/view/create.html.php +++ b/module/todo/view/create.html.php @@ -14,112 +14,131 @@ todo->noTodo);?> -
-
-
- icons['todo']);?> - icons['create']);?> todo->create;?> +
+
+
+

todo->create;?>

-
-
- - - - - - - - + + + + + + + + + + +
todo->date;?> -
- - todo->periods['future'];?> - todo->cycle;?> -
-
todo->private;?> +
+ + +
+
+ +
+ +