* fix bug: when click backbutton not work.

This commit is contained in:
chencongzhi520@gmail.com
2013-07-06 09:13:51 +00:00
parent d4a1af56b4
commit af02603fd5
7 changed files with 29 additions and 8 deletions
+6 -1
View File
@@ -16,7 +16,12 @@
<td><?php echo html::textarea('comment', '', "data-mini='true'");?></td>
</tr>
<tr class="a-center">
<td colspan="2"><?php echo html::submitButton('', 'data-inline="true" data-theme="b"') . html::backButton("data-inline='true'");?></td>
<td colspan="2">
<?php
echo html::submitButton('', 'data-inline="true" data-theme="b"');
echo html::linkButton($lang->goback, $this->createLink('task', 'view', "taskID=$task->id"), 'self', "data-inline='true'");
?>
</td>
</tr>
</table>
</form>
+6 -1
View File
@@ -16,7 +16,12 @@
<td><?php echo html::textarea('comment', '', "data-mini='true'");?></td>
</tr>
<tr class='a-center'>
<td colspan="2"><?php echo html::submitButton('', 'data-inline="true" data-theme="b"') . html::backButton("data-inline='true'");?></td>
<td colspan="2">
<?php
echo html::submitButton('', 'data-inline="true" data-theme="b"');
echo html::linkButton($lang->goback, $this->createLink('task', 'view', "taskID=$task->id"), 'self', "data-inline='true'");
?>
</td>
</tr>
</table>
</form>
+6 -1
View File
@@ -9,7 +9,12 @@
<td><?php echo html::textarea('comment', '', "data-mini='true'");?></td>
</tr>
<tr class='a-center'>
<td colspan="2"><?php echo html::submitButton('', 'data-inline="true" data-theme="b"') . html::backButton("data-inline='true'");?></td>
<td colspan="2">
<?php
echo html::submitButton('', 'data-inline="true" data-theme="b"');
echo html::linkButton($lang->goback, $this->createLink('task', 'view', "taskID=$task->id"), 'self', "data-inline='true'");
?>
</td>
</tr>
</table>
</form>
+1 -1
View File
@@ -19,7 +19,7 @@
<td colspan="2">
<?php
echo html::submitButton('', 'data-inline="true" data-theme="b"');
echo html::backButton("data-inline='true'");
echo html::linkButton($lang->goback, $this->createLink('task', 'view', "taskID=$task->id"), 'self', "data-inline='true'");
echo html::hidden('finishedDate', $date);
?>
</td>
+7 -1
View File
@@ -29,7 +29,13 @@
<td><?php echo html::textarea('comment', '', "data-mini='true'");?></td>
</tr>
<tr class="a-center">
<td colspan="2"><?php echo html::submitButton('', 'data-inline="true" data-theme="b"') . html::backButton("data-inline='true'") . html::hidden('dates[1]', helper::today()) . html::hidden("id[1]", 1); ?></td>
<td colspan="2">
<?php
echo html::submitButton('', 'data-inline="true" data-theme="b"');
echo html::linkButton($lang->goback, $this->createLink('task', 'view', "taskID=$task->id"), 'self', "data-inline='true'");
echo html::hidden('dates[1]', helper::today()) . html::hidden("id[1]", 1);
?>
</td>
</tr>
<?php endif;?>
<table>
+1 -1
View File
@@ -19,7 +19,7 @@
<td colspan="2">
<?php
echo html::submitButton('', 'data-inline="true" data-theme="b"');
echo html::backButton("data-inline='true'");
echo html::linkButton($lang->goback, $this->createLink('task', 'view', "taskID=$task->id"), 'self', "data-inline='true'");
echo html::hidden('realStarted', helper::today());
?>
</td>
+2 -2
View File
@@ -1,5 +1,5 @@
<?php
$this->session->set('taskID', $task->id);
if($this->session->taskType) die(js::locate($this->createLink('my', 'task', "type={$this->session->taskType}"), 'parent'));
die(js::locate($this->createLink('project', 'task', "projectID=$project->id"), 'parent'));
if($this->session->taskType) die($this->locate($this->createLink('my', 'task', "type={$this->session->taskType}")));
die($this->locate($this->createLink('project', 'task', "projectID=$project->id")));
?>