2010-07-07 11:30:04 +07:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
|
|
Copyright (C) 2007 Ashley G Ramdass.
|
|
|
|
-->
|
|
|
|
<?page style="height:100%"?>
|
|
|
|
<?init zscript="theme.zs" ?>
|
2013-04-12 15:20:41 +07:00
|
|
|
<?meta http-equiv="X-UA-Compatible" content="IE=edge" ?>
|
2013-03-14 09:45:16 +07:00
|
|
|
<?meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" ?>
|
2010-07-07 11:30:04 +07:00
|
|
|
<?link rel="icon" type="image/png" href="${browserIcon}"?>
|
|
|
|
<?link rel="stylesheet" type="text/css" href="${themeStyleSheet}"?>
|
|
|
|
<?link rel="stylesheet" type="text/css" href="${themeStyleSheetByBrowser}"?>
|
|
|
|
<?link rel="stylesheet" type="text/css" href="css/PAPanel.css"?>
|
|
|
|
<zk>
|
2015-01-19 09:08:49 +07:00
|
|
|
<script><![CDATA[
|
2013-10-28 14:45:48 +07:00
|
|
|
zk.afterLoad(function() {
|
|
|
|
zk._Erbx.push = function(msg) {
|
|
|
|
if (console) console.log(msg);
|
|
|
|
}
|
|
|
|
});
|
2015-01-19 09:08:49 +07:00
|
|
|
|
|
|
|
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) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
2015-08-09 23:15:14 +07:00
|
|
|
|
|
|
|
zk.afterLoad('zul.mesh', function () {
|
|
|
|
|
|
|
|
zk.override(zul.mesh.Paging.prototype, "bind_", function () {
|
|
|
|
this.$bind_.apply(this, arguments);
|
|
|
|
if (this._totalSize == 0x7fffffff){
|
|
|
|
jq(".z-paging-text", this).text("?");
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
zk.override(zul.mesh.Paging.prototype, "infoText_",
|
|
|
|
function () {
|
|
|
|
//this.$infoText_.apply(this, arguments);
|
|
|
|
var acp = this._activePage,
|
|
|
|
psz = this._pageSize,
|
|
|
|
tsz = this._totalSize,
|
|
|
|
|
|
|
|
lastItem = (acp + 1) * psz,
|
|
|
|
dash = '';
|
|
|
|
|
|
|
|
if ('os' != this.getMold())
|
|
|
|
dash = ' - ' + (lastItem > tsz ? tsz : lastItem);
|
|
|
|
|
|
|
|
if (this._totalSize == 0x7fffffff)
|
|
|
|
tsz = "?";
|
|
|
|
|
|
|
|
return '[ ' + (acp * psz + 1) + dash + ' / ' + tsz + ' ]';
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2015-01-19 09:08:49 +07:00
|
|
|
]]>
|
2013-10-28 14:45:48 +07:00
|
|
|
</script>
|
2013-05-21 22:43:22 +07:00
|
|
|
<include src="${themePreference}"/>
|
2010-07-07 11:30:04 +07:00
|
|
|
<window use="org.adempiere.webui.AdempiereWebUI"/>
|
2013-05-21 22:43:22 +07:00
|
|
|
</zk>
|