* finish task #4033 for backyard.
This commit is contained in:
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user