+ re tag 1.4.
This commit is contained in:
@@ -470,7 +470,8 @@ class project extends control
|
||||
{
|
||||
if($projectID)
|
||||
{
|
||||
$this->view->tips = $this->fetch('project', 'tips', "projectID=$projectID");
|
||||
$this->view->tips = $this->fetch('project', 'tips', "projectID=$projectID");
|
||||
$this->view->projectID = $projectID;
|
||||
$this->display();
|
||||
exit;
|
||||
}
|
||||
@@ -842,9 +843,7 @@ class project extends control
|
||||
*/
|
||||
public function tips($projectID)
|
||||
{
|
||||
$url = $this->createLink('project', 'task', "projectID=$projectID");
|
||||
$this->view->projectID = $projectID;
|
||||
$this->display('project', 'tips');
|
||||
echo "<html><head><meta http-equiv='refresh' content='5; url=$url' /></head><body></body></html>";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,9 +16,12 @@
|
||||
<body style='background:white'>
|
||||
<script language='Javascript'>
|
||||
var tips = <?php echo json_encode($tips);?>;
|
||||
var projectID = <?php echo $projectID;?>;
|
||||
defaultURL = createLink('project', 'task', 'projectID=' + projectID);
|
||||
$(document).ready(function()
|
||||
{
|
||||
$.fn.colorbox({html:tips, open:true, width:480, height:280});
|
||||
setTimeout( function() {location.href=defaultURL}, 5000);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user