launcher: pass whole argv to arg check function, recheck all inputs before attempting to start
This commit is contained in:
parent
6b07e7f70f
commit
af30b32c72
1 changed files with 3 additions and 2 deletions
|
|
@ -69,9 +69,9 @@ $(document).ready(()=>{
|
|||
v = parseFloat(v)
|
||||
}
|
||||
|
||||
if (v != '' && option.check && option.check(v) !== true) {
|
||||
if (v != '' && option.check && option.check(v, argv) !== true) {
|
||||
wrapper.addClass('error')
|
||||
wrapper.append(`<div class="error-msg">${option.check(v)}</div>`)
|
||||
wrapper.append(`<div class="error-msg">${option.check(v, argv )}</div>`)
|
||||
} else {
|
||||
wrapper.removeClass('error')
|
||||
wrapper.find('.error-msg').remove()
|
||||
|
|
@ -103,6 +103,7 @@ $(document).ready(()=>{
|
|||
|
||||
e.preventDefault()
|
||||
|
||||
$('input').change()
|
||||
if (form.find('.error').length) return
|
||||
|
||||
start.off('click')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue