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
9baa9535
Commit
9baa9535
authored
Apr 30, 2022
by
longpanda
Browse files
Fix a bug in menu tip plugin webpage of VentoyPlugson. (#1602)
parent
5f3d7f38
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
Plugson/www/buildtime
Plugson/www/buildtime
+1
-1
Plugson/www/index.html
Plugson/www/index.html
+1
-1
Plugson/www/plugson_menu_tip.html
Plugson/www/plugson_menu_tip.html
+6
-3
No files found.
Plugson/www/buildtime
View file @
9baa9535
20220108 22:41:02
20220430 13:06:42
\ No newline at end of file
\ No newline at end of file
Plugson/www/index.html
View file @
9baa9535
...
@@ -723,7 +723,7 @@
...
@@ -723,7 +723,7 @@
<footer
class=
"main-footer"
>
<footer
class=
"main-footer"
>
<div
class=
"pull-right hidden-xs"
>
<div
class=
"pull-right hidden-xs"
>
<b
id=
"plugson_build_date"
>
20220
311 21:24:51
</b>
<b
id=
"plugson_build_date"
>
20220
430 13:06:42
</b>
</div>
</div>
<strong><a
href=
"https://www.ventoy.net"
target=
"_blank"
>
https://www.ventoy.net
</a></strong>
<strong><a
href=
"https://www.ventoy.net"
target=
"_blank"
>
https://www.ventoy.net
</a></strong>
</footer>
</footer>
...
...
Plugson/www/plugson_menu_tip.html
View file @
9baa9535
...
@@ -195,7 +195,7 @@
...
@@ -195,7 +195,7 @@
$
(
'
input:text[id=id_tip_text_top]
'
).
val
(
data
.
top
);
$
(
'
input:text[id=id_tip_text_top]
'
).
val
(
data
.
top
);
$
(
'
input:text[id=id_tip_text_color]
'
).
val
(
data
.
color
);
$
(
'
input:text[id=id_tip_text_color]
'
).
val
(
data
.
color
);
FillTipTable
(
data
);
FillTipTable
(
data
.
tips
);
}
}
...
@@ -208,7 +208,7 @@
...
@@ -208,7 +208,7 @@
}
}
current_tab_index
=
index
;
current_tab_index
=
index
;
VtoyFillCurrentPageItem
(
m_data_tip
[
index
]
.
tips
);
VtoyFillCurrentPageItem
(
m_data_tip
[
index
]);
}
}
//Main process
//Main process
...
@@ -332,8 +332,9 @@
...
@@ -332,8 +332,9 @@
$
(
'
input:text[id=id_tip_text_left]
'
).
change
(
function
()
{
$
(
'
input:text[id=id_tip_text_left]
'
).
change
(
function
()
{
var
value
=
$
(
'
input:text[id=id_tip_text_left]
'
).
val
();
var
value
=
$
(
'
input:text[id=id_tip_text_left]
'
).
val
();
if
(
ventoy_check_percent
(
value
))
{
if
(
ventoy_check_percent
(
value
))
{
VtoySaveCurrentPage
();
VtoySaveCurrentPage
();
m_data_tip
[
current_tab_index
].
left
=
value
;
}
else
{
}
else
{
Message
.
error
(
g_vtoy_cur_language
.
STR_INVALID_PERCENT
);
Message
.
error
(
g_vtoy_cur_language
.
STR_INVALID_PERCENT
);
$
(
'
input:text[id=id_tip_text_left]
'
).
val
(
m_data_tip
[
current_tab_index
].
left
);
$
(
'
input:text[id=id_tip_text_left]
'
).
val
(
m_data_tip
[
current_tab_index
].
left
);
...
@@ -343,6 +344,7 @@
...
@@ -343,6 +344,7 @@
var
value
=
$
(
'
input:text[id=id_tip_text_top]
'
).
val
();
var
value
=
$
(
'
input:text[id=id_tip_text_top]
'
).
val
();
if
(
ventoy_check_percent
(
value
))
{
if
(
ventoy_check_percent
(
value
))
{
VtoySaveCurrentPage
();
VtoySaveCurrentPage
();
m_data_tip
[
current_tab_index
].
top
=
value
;
}
else
{
}
else
{
Message
.
error
(
g_vtoy_cur_language
.
STR_INVALID_PERCENT
);
Message
.
error
(
g_vtoy_cur_language
.
STR_INVALID_PERCENT
);
$
(
'
input:text[id=id_tip_text_top]
'
).
val
(
m_data_tip
[
current_tab_index
].
top
);
$
(
'
input:text[id=id_tip_text_top]
'
).
val
(
m_data_tip
[
current_tab_index
].
top
);
...
@@ -353,6 +355,7 @@
...
@@ -353,6 +355,7 @@
if
(
value
.
length
>
0
)
{
if
(
value
.
length
>
0
)
{
if
(
ventoy_check_color
(
value
))
{
if
(
ventoy_check_color
(
value
))
{
VtoySaveCurrentPage
();
VtoySaveCurrentPage
();
m_data_tip
[
current_tab_index
].
color
=
value
;
}
else
{
}
else
{
Message
.
error
(
g_vtoy_cur_language
.
STR_INVALID_COLOR
);
Message
.
error
(
g_vtoy_cur_language
.
STR_INVALID_COLOR
);
$
(
'
input:text[id=id_tip_text_color]
'
).
val
(
m_data_tip
[
current_tab_index
].
color
);
$
(
'
input:text[id=id_tip_text_color]
'
).
val
(
m_data_tip
[
current_tab_index
].
color
);
...
...
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