|
@@ -333,14 +333,15 @@ function Form(el, data, okCallback, cancelCallback){
|
|
}
|
|
}
|
|
|
|
|
|
console.log('valid', this.validators.isValid)
|
|
console.log('valid', this.validators.isValid)
|
|
|
|
+ } catch(e){/*sample text*/}
|
|
|
|
|
|
|
|
+ try {
|
|
if(Object.values(this.validators.isValid).every((item) => item === true)) {
|
|
if(Object.values(this.validators.isValid).every((item) => item === true)) {
|
|
okButton.disabled = false
|
|
okButton.disabled = false
|
|
} else {
|
|
} else {
|
|
okButton.disabled = true
|
|
okButton.disabled = true
|
|
}
|
|
}
|
|
-
|
|
|
|
- } catch(e){/*sample text*/}
|
|
|
|
|
|
+ } catch(e) {}
|
|
}
|
|
}
|
|
|
|
|
|
let inputCreators = {
|
|
let inputCreators = {
|
|
@@ -376,7 +377,6 @@ function Form(el, data, okCallback, cancelCallback){
|
|
this.checkInfo(input.value, key, {}, input, small)
|
|
this.checkInfo(input.value, key, {}, input, small)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
return wrap
|
|
return wrap
|
|
},
|
|
},
|
|
|
|
|