Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
598af7f4
Commit
598af7f4
authored
Jun 27, 2022
by
longpanda
Browse files
Auto remove the redundant trailing slash when set directory path on VentoyPlugson page.
parent
24b05c03
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
Plugson/www/index.html
Plugson/www/index.html
+3
-3
Plugson/www/static/js/vtoy.js
Plugson/www/static/js/vtoy.js
+7
-0
No files found.
Plugson/www/index.html
View file @
598af7f4
...
...
@@ -743,10 +743,10 @@
<script
src=
"/static/js/jQuery-2.1.4.min.js"
></script>
<!-- jquery validate -->
<script
src=
"/static/js/jquery.validate.min.js"
></script>
<script
src=
"/static/js/jquery.validate.vtoymethods.js"
></script>
<script
src=
"/static/js/jquery.validate.vtoymethods.js
?v=100
"
></script>
<script
src=
"/static/js/vtoy.js"
></script>
<script
src=
"/static/js/jquery.vtoy.alert.js"
></script>
<script
src=
"/static/js/vtoy.js
?v=100
"
></script>
<script
src=
"/static/js/jquery.vtoy.alert.js
?v=100
"
></script>
<script
src=
"/static/js/md5.min.js"
></script>
<!-- Bootstrap 3.3.5 -->
...
...
Plugson/www/static/js/vtoy.js
View file @
598af7f4
...
...
@@ -2,6 +2,13 @@
function
ventoy_replace_slash
(
str
)
{
var
str1
=
str
.
replace
(
/
\\
/g
,
'
/
'
);
var
str2
=
str1
.
replace
(
/
\/\/
/g
,
'
/
'
);
if
(
str2
&&
str2
.
length
>
0
)
{
if
(
str2
.
substr
(
-
1
)
===
"
/
"
)
{
return
str2
.
substr
(
0
,
str2
.
length
-
1
);
}
}
return
str2
;
}
...
...
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