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
+2 -2
View File
@@ -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>
@@ -101,7 +101,7 @@
}
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 {