20230328数据展示页关闭按钮事件修改

This commit is contained in:
2023-03-28 09:37:22 +08:00
parent 0ede4e0d81
commit 692fed9862
25 changed files with 72 additions and 72 deletions
@@ -35,7 +35,7 @@
Width="130px">
</f:DatePicker>--%>
<f:ToolbarFill runat="server"></f:ToolbarFill>
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" Text="关闭" runat="server" Icon="SystemClose" OnClientClick="close();">
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" Text="关闭" runat="server" Icon="SystemClose" OnClientClick="closeNow();">
</f:Button>
</Items>
</f:Toolbar>
@@ -105,13 +105,13 @@
}
// 点击标题栏工具图标 - 退出
function close(event) {
function closeNow(event) {
var bConfirmed = confirm('您确定要退出吗?');
if (bConfirmed) { closePage(); }
}
function closePage() {
if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) {
if (navigator.userAgent.indexOf("Firefox") !== -1 || navigator.userAgent.indexOf("Chrome") !== -1) {
window.location.href = "about:blank";
window.close();
} else {