Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo-1
Commits
ede792ea
Unverified
Commit
ede792ea
authored
Sep 23, 2018
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed #12516
parent
5b94de10
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
13 deletions
+20
-13
src/main/webapp/js/common.js
src/main/webapp/js/common.js
+19
-12
src/main/webapp/js/common.min.js
src/main/webapp/js/common.min.js
+1
-1
No files found.
src/main/webapp/js/common.js
View file @
ede792ea
...
@@ -238,22 +238,29 @@ var Util = {
...
@@ -238,22 +238,29 @@ var Util = {
killIE
:
function
(
ieVersion
)
{
killIE
:
function
(
ieVersion
)
{
var
addKillPanel
=
function
()
{
var
addKillPanel
=
function
()
{
if
(
Cookie
.
readCookie
(
"
showKill
"
)
===
""
)
{
if
(
Cookie
.
readCookie
(
"
showKill
"
)
===
""
)
{
var
left
=
(
$
(
window
).
width
()
-
781
)
/
2
,
try
{
top1
=
(
$
(
window
).
height
()
-
680
)
/
2
;
var
left
=
(
$
(
window
).
width
()
-
781
)
/
2
,
$
(
"
body
"
).
append
(
"
<div style='display: block; height: 100%; width: 100%; position: fixed; background-color: rgb(0, 0, 0); opacity: 0.6;filter: alpha(opacity=60); top: 0px;z-index:110'></div>
"
top1
=
(
$
(
window
).
height
()
-
680
)
/
2
;
+
"
<iframe style='left:
"
+
left
+
"
px;z-index:120;top:
"
+
top1
+
"
px; position: fixed; border: 0px none; width: 781px; height: 680px;' src='
"
+
latkeConfig
.
servePath
+
"
/kill-browser'></iframe>
"
);
var
killIEHTML
=
"
<div style='display: block; height: 100%; width: 100%; position: fixed; background-color: rgb(0, 0, 0); opacity: 0.6;filter: alpha(opacity=60); top: 0px;z-index:110'></div>
"
+
"
<iframe style='left:
"
+
left
+
"
px;z-index:120;top:
"
+
top1
+
"
px; position: fixed; border: 0px none; width: 781px; height: 680px;' src='
"
+
latkeConfig
.
servePath
+
"
/kill-browser'></iframe>
"
;
$
(
"
body
"
).
append
(
killIEHTML
)
}
catch
(
e
)
{
var
left
=
10
,
top1
=
0
;
var
killIEHTML
=
"
<div style='display: block; height: 100%; width: 100%; position: fixed; background-color: rgb(0, 0, 0); opacity: 0.6;filter: alpha(opacity=60); top: 0px;z-index:110'></div>
"
+
"
<iframe style='left:
"
+
left
+
"
px;z-index:120;top:
"
+
top1
+
"
px; position: fixed; border: 0px none; width: 781px; height: 680px;' src='
"
+
latkeConfig
.
servePath
+
"
/kill-browser'></iframe>
"
;
document
.
body
.
innerHTML
=
document
.
body
.
innerHTML
+
killIEHTML
}
}
}
};
};
if
(
$
.
browser
.
msie
)
{
var
ua
=
navigator
.
userAgent
.
split
(
'
MSIE
'
)[
1
]
// kill IE6 and IE7
if
(
ua
)
{
if
(
$
.
browser
.
version
===
"
6.0
"
||
$
.
browser
.
version
===
"
7.0
"
)
{
if
(
!
ieVersion
)
{
addKillPanel
();
ieVersion
=
7
}
}
if
(
ieVersion
)
{
if
(
parseFloat
(
ua
.
split
(
'
;
'
))
<=
ieVersion
){
if
(
parseFloat
(
$
.
browser
.
version
)
<=
ieVersion
){
addKillPanel
();
addKillPanel
();
}
}
}
}
}
},
},
...
...
src/main/webapp/js/common.min.js
View file @
ede792ea
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment