* finish task #4033 for backyard.

This commit is contained in:
wangyidong
2016-06-12 11:22:27 +08:00
parent 316c6c7150
commit ac930e6a46
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -37,8 +37,8 @@ $.get(createLink('tutorial', 'ajaxSaveNovice', 'novice=' + (novice ? 'true' : 'f
</script>
<?php endif;?>
<script>config.onlybody = '<?php echo $onlybody?>';</script>
<?php
js::set('onlybody', $onlybody); // set the onlybody var.
if($this->loadModel('cron')->runable()) js::execute('startCron()');
if(isset($pageJS)) js::execute($pageJS); // load the js for current page.
+1 -1
View File
@@ -34,7 +34,7 @@ function createLink(moduleName, methodName, vars, viewType, isOnlyBody)
}
/* if page has onlybody param then add this param in all link. the param hide header and footer. */
if((typeof(onlybody) != 'undefined' && onlybody == 'yes') || isOnlyBody)
if((typeof(config.onlybody) != 'undefined' && config.onlybody == 'yes') || isOnlyBody)
{
var onlybody = config.requestType != 'GET' ? "?onlybody=yes" : '&onlybody=yes';
link = link + onlybody;