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
+3 -3
View File
@@ -31,7 +31,7 @@
<f:RadioItem Text="竣工" Value="3" />
</f:RadioButtonList>
<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>
@@ -133,13 +133,13 @@
return false;
}
// 点击标题栏工具图标 - 退出
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 {