diff --git a/module/bug/view/activate.html.php b/module/bug/view/activate.html.php index d9f5f27db7..d29f4cb09e 100644 --- a/module/bug/view/activate.html.php +++ b/module/bug/view/activate.html.php @@ -12,38 +12,43 @@ ?> -
-
- icons['bug']);?> id;?> - createLink('bug', 'view', 'bug=' . $bug->id), $bug->title, '_blank');?> - bug->activate;?> +
+
+
+

+ id;?> + title : html::a($this->createLink('bug', 'view', 'bug=' . $bug->id), $bug->title);?> + + + arrow . $lang->bug->activate;?> + +

+
+
+ + + + + + + + + + + + + + + + + + + + +
bug->assignedTo;?>resolvedBy, "class='form-control chosen'");?>
bug->openedBuild;?>openedBuild, 'size=4 multiple=multiple class="form-control chosen"');?>
comment;?>
bug->files;?>fetch('file', 'buildform');?>
goback, $this->session->bugList);?>
+
+
+
- -
- - - - - - - - - - - - - - - - - - - - -
bug->assignedTo;?>resolvedBy, "class='form-control chosen'");?>
bug->openedBuild;?>openedBuild, 'size=4 multiple=multiple class="form-control chosen"');?>
comment;?>
bug->files;?>fetch('file', 'buildform');?>
goback, $this->session->bugList);?>
-
-
- -
diff --git a/module/bug/view/assignto.html.php b/module/bug/view/assignto.html.php index b06b1b2330..ce1fc14d4d 100644 --- a/module/bug/view/assignto.html.php +++ b/module/bug/view/assignto.html.php @@ -16,34 +16,39 @@ include '../../common/view/kindeditor.html.php'; js::set('holders', $lang->bug->placeholder); js::set('page', 'assignedto'); ?> -
-
- icons['bug']);?> id;?> - createLink('bug', 'view', 'bug=' . $bug->id), $bug->title, '_blank');?> - bug->assignBug;?> icons['assignTo']);?> +
+
+
+

+ id;?> + title : html::a($this->createLink('bug', 'view', 'bug=' . $bug->id), $bug->title);?> + + + arrow . $lang->bug->assignBug;?> + +

+
+
+ + + + + + + + + + + + + + + + +
bug->assignBug;?>assignedTo, "class='form-control chosen'");?>
bug->mailto;?>mailto), 'class="form-control chosen" multiple');?>
comment;?>
goback, $this->server->http_referer);?>
+
+
+
- -
- - - - - - - - - - - - - - - - -
bug->assignBug;?>assignedTo, "class='form-control chosen'");?>
bug->mailto;?>mailto), 'class="form-control chosen" multiple');?>
comment;?>
goback, $this->server->http_referer);?>
-
-
- -
diff --git a/module/bug/view/close.html.php b/module/bug/view/close.html.php index 975bc16454..16606021e5 100644 --- a/module/bug/view/close.html.php +++ b/module/bug/view/close.html.php @@ -12,26 +12,31 @@ ?> -
-
- icons['bug']);?> id;?> - createLink('bug', 'view', 'bug=' . $bug->id), $bug->title, '_blank');?> - bug->close;?> +
+
+
+

+ id;?> + title : html::a($this->createLink('bug', 'view', 'bug=' . $bug->id), $bug->title);?> + + + arrow . $lang->bug->close;?> + +

+
+
+ + + + + + + + +
comment;?>
goback, $this->session->bugList);?>
+
+
+
- -
- - - - - - - - -
comment;?>
goback, $this->session->bugList);?>
-
-
- -
diff --git a/module/bug/view/confirmbug.html.php b/module/bug/view/confirmbug.html.php index 905221cd1f..285d3e8b7c 100755 --- a/module/bug/view/confirmbug.html.php +++ b/module/bug/view/confirmbug.html.php @@ -16,43 +16,48 @@ include '../../common/view/kindeditor.html.php'; js::set('holders', $lang->bug->placeholder); js::set('page', 'confirmbug'); ?> -
-
- icons['bug']);?> id;?> - createLink('bug', 'view', 'bug=' . $bug->id), $bug->title, '_blank');?> - bug->confirmBug;?> icons['confirm']);?> +
+
+
+

+ id;?> + title : html::a($this->createLink('bug', 'view', 'bug=' . $bug->id), $bug->title);?> + + + arrow . $lang->bug->confirmBug;?> + +

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
bug->assignedTo;?>assignedTo, "class='select-2 chosen'");?>
bug->type;?>bug->typeList, $bug->type, 'class=form-control');?>
bug->pri;?>bug->priList, $bug->pri, 'class=form-control');?>
bug->mailto;?>mailto), 'class="form-control chosen" multiple');?>
comment;?>
goback, $this->server->http_referer);?>
+
+
+
- -
- - - - - - - - - - - - - - - - - - - - - - - - - -
bug->assignedTo;?>assignedTo, "class='select-2 chosen'");?>
bug->type;?>bug->typeList, $bug->type, 'class=form-control');?>
bug->pri;?>bug->priList, $bug->pri, 'class=form-control');?>
bug->mailto;?>mailto), 'class="form-control chosen" multiple');?>
comment;?>
goback, $this->server->http_referer);?>
-
-
- -
diff --git a/module/bug/view/resolve.html.php b/module/bug/view/resolve.html.php index f2efd953d5..16b548698a 100644 --- a/module/bug/view/resolve.html.php +++ b/module/bug/view/resolve.html.php @@ -17,65 +17,70 @@ js::set('page' , 'resolve'); js::set('productID' , $bug->product); ?> -
-
- icons['bug']);?> id;?> - createLink('bug', 'view', 'bug=' . $bug->id), $bug->title, '_blank');?> - bug->resolve;?> icons['resolve']);?> +
+
+
+

+ id;?> + title : html::a($this->createLink('bug', 'view', 'bug=' . $bug->id), $bug->title);?> + + + arrow . $lang->bug->resolve;?> + +

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bug->resolution;?>bug->resolutionList, '', 'class=form-control onchange=setDuplicate(this.value)');?>
bug->duplicateBug;?>
bug->resolvedBuild;?> +
+ + + + + +
+
bug->resolvedDate;?>
bug->assignedTo;?>
bug->files;?>fetch('file', 'buildform', 'fileCount=1&percent=0.85');?>
comment;?>
goback, $this->session->bugList);?>
+
+
+
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bug->resolution;?>bug->resolutionList, '', 'class=form-control onchange=setDuplicate(this.value)');?>
bug->duplicateBug;?>
bug->resolvedBuild;?> -
- - - - - -
-
bug->resolvedDate;?>
bug->assignedTo;?>
bug->files;?>fetch('file', 'buildform', 'fileCount=1&percent=0.85');?>
comment;?>
goback, $this->session->bugList);?>
-
-
- -
diff --git a/module/testtask/control.php b/module/testtask/control.php index b7bde4f94e..ed23ab1f4f 100644 --- a/module/testtask/control.php +++ b/module/testtask/control.php @@ -525,7 +525,7 @@ class testtask extends control if(!empty($_POST)) { $changes = $this->testtask->activate($taskID); - if(dao::isError()) die(js::error(dao::getError())); + if(dao::isError()) $this->send(array('result' => 'fail', 'message' => dao::getError())); if($this->post->comment != '' or !empty($changes)) { @@ -533,8 +533,8 @@ class testtask extends control $this->action->logHistory($actionID, $changes); } - if(isonlybody()) die(js::reload('parent.parent')); - die(js::locate($this->createLink('testtask', 'view', "taskID=$taskID"), 'parent')); + if(isonlybody()) $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => 'parent')); + $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->createLink('testtask', 'view', "taskID=$taskID"))); } /* Get task info. */ @@ -609,7 +609,7 @@ class testtask extends control if(!empty($_POST)) { $changes = $this->testtask->block($taskID); - if(dao::isError()) die(js::error(dao::getError())); + if(dao::isError()) $this->send(array('result' => 'fail', 'message' => dao::getError())); if($this->post->comment != '' or !empty($changes)) { @@ -617,8 +617,8 @@ class testtask extends control $this->action->logHistory($actionID, $changes); } - if(isonlybody()) die(js::reload('parent.parent')); - die(js::locate($this->createLink('testtask', 'view', "taskID=$taskID"), 'parent')); + if(isonlybody()) $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => 'parent')); + $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->createLink('testtask', 'view', "taskID=$taskID"))); } /* Get task info. */ diff --git a/module/testtask/js/common.js b/module/testtask/js/common.js index 31d2bf42c6..63032b82b1 100644 --- a/module/testtask/js/common.js +++ b/module/testtask/js/common.js @@ -1,6 +1,6 @@ $(document).ready(function() { - $('#startForm, #closeForm').ajaxForm( + $('#startForm, #closeForm, #activateForm, #blockForm').ajaxForm( { finish:function(response) { diff --git a/module/testtask/view/activate.html.php b/module/testtask/view/activate.html.php index 20ee5fe6d5..5ea910797a 100644 --- a/module/testtask/view/activate.html.php +++ b/module/testtask/view/activate.html.php @@ -12,31 +12,28 @@ ?> - -
-
-
- icons['testtask']);?> id;?> - createLink('testtask', 'view', 'taskID=' . $testtask->id), $testtask->name, '_blank');?> - testtask->activate;?> icons['start']);?> +
+
+
+

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

-
- -
- - - - - - - - - - -
comment;?>
goback, $this->session->taskList); ?>
-
-
- +
+ + + + + + + + +
comment;?>
goback, $this->session->taskList); ?>
+
+
+
diff --git a/module/testtask/view/block.html.php b/module/testtask/view/block.html.php index 923366c582..7ff5e5419f 100644 --- a/module/testtask/view/block.html.php +++ b/module/testtask/view/block.html.php @@ -13,30 +13,29 @@ -
-
-
- icons['testtask']);?> id;?> - createLink('testtask', 'view', 'taskID=' . $testtask->id), $testtask->name, '_blank');?> - testtask->block;?> icons['pause']);?> +
+
+
+

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

-
+
+ + + + + + + + +
comment;?>
goback, $this->session->taskList); ?>
+
-
- - - - - - - - - - -
comment;?>
goback, $this->session->taskList); ?>
-
-
- +
+