Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
senpy
senpy
Commits
f93eed2c
Commit
f93eed2c
authored
Jan 01, 2018
by
J. Fernando Sánchez
Browse files
Fix bug in UI
Extra parameters of the plugins didn't get a box all the time.
parent
0204e0b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
senpy/static/js/main.js
View file @
f93eed2c
...
...
@@ -57,22 +57,22 @@ $(document).ready(function() {
html
+=
"
disabled=
\"
disabled
\"
"
}
html
+=
"
>
"
+
plugin
[
"
name
"
]
+
"
</option>
"
}
if
(
plugin
[
"
extra_params
"
]){
plugins_params
[
plugin
[
"
name
"
]]
=
{};
for
(
param
in
plugin
[
"
extra_params
"
]){
if
(
typeof
plugin
[
"
extra_params
"
][
param
]
!=
"
string
"
){
var
params
=
new
Array
();
var
alias
=
plugin
[
"
extra_params
"
][
param
][
"
aliases
"
][
0
];
params
[
alias
]
=
new
Array
();
for
(
option
in
plugin
[
"
extra_params
"
][
param
][
"
options
"
]){
params
[
alias
].
push
(
plugin
[
"
extra_params
"
][
param
][
"
options
"
][
option
])
}
plugins_params
[
plugin
[
"
name
"
]][
alias
]
=
(
params
[
alias
])
if
(
plugin
[
"
extra_params
"
]){
plugins_params
[
plugin
[
"
name
"
]]
=
{};
for
(
param
in
plugin
[
"
extra_params
"
]){
if
(
typeof
plugin
[
"
extra_params
"
][
param
]
!=
"
string
"
){
var
params
=
new
Array
();
var
alias
=
plugin
[
"
extra_params
"
][
param
][
"
aliases
"
][
0
];
params
[
alias
]
=
new
Array
();
for
(
option
in
plugin
[
"
extra_params
"
][
param
][
"
options
"
]){
params
[
alias
].
push
(
plugin
[
"
extra_params
"
][
param
][
"
options
"
][
option
])
}
plugins_params
[
plugin
[
"
name
"
]][
alias
]
=
(
params
[
alias
])
}
}
}
}
}
}
var
pluginEntry
=
document
.
createElement
(
'
li
'
);
newHtml
=
""
...
...
Write
Preview
Supports
Markdown
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