diff --git a/module/common/view/m.header.html.php b/module/common/view/m.header.html.php
index b6964287bf..eab42a9a8b 100755
--- a/module/common/view/m.header.html.php
+++ b/module/common/view/m.header.html.php
@@ -4,7 +4,7 @@ include 'm.header.lite.html.php';
?>
company->name?>
- createLink('user', 'logout'), $lang->logout, '', "data-icon='delete' class='ui-btn-right'")?>
+ createLink('user', 'logout'), $lang->logout, '', "id='logout' data-icon='delete' class='ui-btn-right'")?>
moduleName, $this->methodName)?>
diff --git a/www/js/m.my.full.js b/www/js/m.my.full.js
index 6f7595bacf..7edc3e3a52 100644
--- a/www/js/m.my.full.js
+++ b/www/js/m.my.full.js
@@ -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");