@@ -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 @@
| 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];?> |
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;