IDEMPIERE-2114 Session is not closed when closing the tab. Integrate patch from hieplq.
This commit is contained in:
parent
64faf954bc
commit
c3ae09f539
|
@ -11,12 +11,35 @@ Copyright (C) 2007 Ashley G Ramdass.
|
||||||
<?link rel="stylesheet" type="text/css" href="${themeStyleSheetByBrowser}"?>
|
<?link rel="stylesheet" type="text/css" href="${themeStyleSheetByBrowser}"?>
|
||||||
<?link rel="stylesheet" type="text/css" href="css/PAPanel.css"?>
|
<?link rel="stylesheet" type="text/css" href="css/PAPanel.css"?>
|
||||||
<zk>
|
<zk>
|
||||||
<script>
|
<script><![CDATA[
|
||||||
zk.afterLoad(function() {
|
zk.afterLoad(function() {
|
||||||
zk._Erbx.push = function(msg) {
|
zk._Erbx.push = function(msg) {
|
||||||
if (console) console.log(msg);
|
if (console) console.log(msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
zk.afterLoad(function() {
|
||||||
|
jq(window).unload(function () {
|
||||||
|
//rmDesktop not call in window.onbeforeunload (mount.js) when zk.confirmClose is not null
|
||||||
|
if (!zk.ie && zk.confirmClose){
|
||||||
|
rmDesktop();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
//function rmDesktop duplicated from mount.js ( zk.jar 7.0.3 )
|
||||||
|
function rmDesktop() {
|
||||||
|
var bRmDesktop = !zk.opera && !zk.keepDesktop;
|
||||||
|
if (bRmDesktop || zk.pfmeter) {
|
||||||
|
try {
|
||||||
|
var dts = zk.Desktop.all;
|
||||||
|
for (var dtid in dts)
|
||||||
|
zAu._rmDesktop(dts[dtid], !bRmDesktop);
|
||||||
|
} catch (e) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
]]>
|
||||||
</script>
|
</script>
|
||||||
<include src="${themePreference}"/>
|
<include src="${themePreference}"/>
|
||||||
<window use="org.adempiere.webui.AdempiereWebUI"/>
|
<window use="org.adempiere.webui.AdempiereWebUI"/>
|
||||||
|
|
Loading…
Reference in New Issue