* adjust for pjax for mobile.
This commit is contained in:
@@ -4,7 +4,7 @@ include 'm.header.lite.html.php';
|
||||
?>
|
||||
<div data-role="header" data-position='fixed'>
|
||||
<h1 style='margin-left:0px;text-align:left'><?php echo $app->company->name?></h1>
|
||||
<?php echo html::a($this->createLink('user', 'logout'), $lang->logout, '', "data-icon='delete' class='ui-btn-right'")?>
|
||||
<?php echo html::a($this->createLink('user', 'logout'), $lang->logout, '', "id='logout' data-icon='delete' class='ui-btn-right'")?>
|
||||
<div data-role="navbar" id='mainMenu'>
|
||||
<?php commonModel::printMainmenu($this->moduleName, $this->methodName)?>
|
||||
</ul>
|
||||
|
||||
@@ -208,10 +208,10 @@ function ajaxGetSearchForm()
|
||||
*/
|
||||
function showDetail(objectType, objectID)
|
||||
{
|
||||
$("div:jqmData(role='header')").next().css('margin-top', '5px');
|
||||
$.get(createLink(objectType, 'ajaxGetDetail', "objectID=" + objectID), function(data)
|
||||
{
|
||||
$('#item' + objectID).html(data);
|
||||
$("div:jqmData(role='header')").next().css('margin-top', '5px');
|
||||
$.mobile.loading("hide");
|
||||
});
|
||||
}
|
||||
@@ -259,7 +259,7 @@ $(document).ready(function()
|
||||
setLoadingIcon();
|
||||
|
||||
if(needPing) setTimeout('setPing()', 1000 * 60); // After 5 minutes, begin ping.
|
||||
$(document).pjax("a[target!='hiddenwin']", '#main');
|
||||
$(document).pjax("a[target!='hiddenwin'][id!='logout']", '#main');
|
||||
$(document).on('pjax:complete', function()
|
||||
{
|
||||
$('#main').trigger("pagecreate");
|
||||
|
||||
Reference in New Issue
Block a user