Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Privacy
Imprint
Contact
Login methods
Sign in
Toggle navigation
Menu
Open sidebar
Jonas-Ian Kuche
cards
Commits
810f541f
Commit
810f541f
authored
Apr 16, 2019
by
Curtis Adam
Browse files
Make sure that the sortType is always a number
parent
b899736a
Changes
1
Hide whitespace changes
Inline
Side-by-side
imports/ui/forms/cardsetForm.js
View file @
810f541f
...
...
@@ -99,6 +99,9 @@ export function saveCardset() {
let
error
=
false
;
let
errorMessage
=
"
<ul>
"
;
let
sortType
=
$
(
"
input[name='sortType']:checked
"
).
val
();
if
(
sortType
===
undefined
)
{
sortType
=
0
;
}
if
(
$
(
'
#setName
'
).
val
()
===
""
)
{
error
=
true
;
errorMessage
+=
"
<li>
"
+
TAPi18n
.
__
(
'
modal-dialog.name
'
)
+
"
</li>
"
;
...
...
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