Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
slm-fileview
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
jenkins
slm-fileview
Commits
47bda102
Commit
47bda102
authored
Aug 06, 2019
by
陈精华
Committed by
kl
Aug 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复Chrome76+删除弹出新窗口
parent
fd538a74
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
index.ftl
jodconverter-web/src/main/resources/web/index.ftl
+3
-4
No files found.
jodconverter-web/src/main/resources/web/index.ftl
View file @
47bda102
...
@@ -165,7 +165,7 @@ window.open('http://127.0.0.1:8012/picturesPreview?urls='+encodeURIComponent(fil
...
@@ -165,7 +165,7 @@ window.open('http://127.0.0.1:8012/picturesPreview?urls='+encodeURIComponent(fil
// 删除完成,刷新table
// 删除完成,刷新table
if
(
1
==
data
.
code
)
{
if
(
1
==
data
.
code
)
{
alert
(
data
.
msg
);
alert
(
data
.
msg
);
}
else
{
}
else
{
$
(
'#table'
).
bootstrapTable
(
'refresh'
,
{});
$
(
'#table'
).
bootstrapTable
(
'refresh'
,
{});
}
}
},
},
...
@@ -187,9 +187,8 @@ window.open('http://127.0.0.1:8012/picturesPreview?urls='+encodeURIComponent(fil
...
@@ -187,9 +187,8 @@ window.open('http://127.0.0.1:8012/picturesPreview?urls='+encodeURIComponent(fil
}).
on
(
'pre-body.bs.table'
,
function
(
e
,
data
)
{
}).
on
(
'pre-body.bs.table'
,
function
(
e
,
data
)
{
// 每个data添加一列用来操作
// 每个data添加一列用来操作
$
(
data
).
each
(
function
(
index
,
item
)
{
$
(
data
).
each
(
function
(
index
,
item
)
{
item
.
action
=
"<a class='btn btn-default' target='_blank' href='${baseUrl}onlinePreview?url="
item
.
action
=
"<a class='btn btn-default' href='${baseUrl}onlinePreview?url="
+
encodeURIComponent
(
'${baseUrl}'
+
item
.
fileName
)
+
"'>预览</a>"
+
+
encodeURIComponent
(
'${baseUrl}'
+
item
.
fileName
)
+
"'>预览</a>"
+
"<a class='btn btn-default' href='javascript:void(0);' onclick='deleteFile(
\"
"
+
item
.
fileName
+
"
\"
)'>删除</a>"
;
"<a class='btn btn-default' target='_blank' href='javascript:void(0);' onclick='deleteFile(
\"
"
+
item
.
fileName
+
"
\"
)'>删除</a>"
;
});
});
return
data
;
return
data
;
}).
on
(
'post-body.bs.table'
,
function
(
e
,
data
)
{
}).
on
(
'post-body.bs.table'
,
function
(
e
,
data
)
{
...
...
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