From 7c7ec70572cc4183053472ed3c0e7e47eb4eb95e Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 27 Feb 2013 01:51:51 +0000 Subject: [PATCH] * finish task #1130. --- module/my/view/todo.html.php | 3 +-- module/user/view/todo.html.php | 3 +-- www/js/my.full.js | 7 ++++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/module/my/view/todo.html.php b/module/my/view/todo.html.php index f53ab2b1c6..9f99d97d08 100644 --- a/module/my/view/todo.html.php +++ b/module/my/view/todo.html.php @@ -12,7 +12,6 @@ ?> -requestType == 'GET' ? '&onlybody=yes' : '?onlybody=yes';?>
@@ -74,7 +73,7 @@ date == '2030-01-01' ? $lang->todo->periods['future'] : $todo->date;?> todo->typeList[$todo->type];?> pri;?>'>pri?> - createLink('todo', 'view', "id=$todo->id&from=my") . $onlybody, $todo->name, '', "class='colorbox'");?> + createLink('todo', 'view', "id=$todo->id&from=my", '', true), $todo->name, '', "class='colorbox'");?> begin;?> end;?> todo->statusList[$todo->status];?> diff --git a/module/user/view/todo.html.php b/module/user/view/todo.html.php index 985a8b07f1..bd5058b27a 100644 --- a/module/user/view/todo.html.php +++ b/module/user/view/todo.html.php @@ -13,7 +13,6 @@ -requestType == 'GET' ? '&onlybody=yes' : '?onlybody=yes';?> @@ -54,7 +53,7 @@ - + diff --git a/www/js/my.full.js b/www/js/my.full.js index 6f39b35f9b..1ddbb7a50c 100644 --- a/www/js/my.full.js +++ b/www/js/my.full.js @@ -47,9 +47,10 @@ function loadFixedCSS() * @access public * @return string */ -function createLink(moduleName, methodName, vars, viewType) +function createLink(moduleName, methodName, vars, viewType, isOnlyBody) { - if(!viewType) viewType = config.defaultView; + if(!viewType) viewType = config.defaultView; + if(!isOnlyBody) isOnlyBody = false; if(vars) { vars = vars.split('&'); @@ -78,7 +79,7 @@ function createLink(moduleName, methodName, vars, viewType) } /* if page has onlybody param then add this param in all link. the param hide header and footer. */ - if(onlybody == 'yes') + if(onlybody == 'yes' || isOnlyBody) { var onlybody = config.requestType == 'PATH_INFO' ? "?onlybody=yes" : '&onlybody=yes'; link = link + onlybody;
date == '2030-01-01' ? $lang->todo->periods['future'] : $todo->date;?> todo->typeList[$todo->type];?> pri;?>'>pri?>createLink('todo', 'view', "id=$todo->id") . $onlybody, $todo->name, '', "class='colorbox'");?>createLink('todo', 'view', "id=$todo->id", '' true), $todo->name, '', "class='colorbox'");?> begin;?> end;?> todo->statusList[$todo->status];?>