mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-01-11 17:58:41 +00:00
Minor bug fixes and attribute fixes
This commit is contained in:
parent
3637a4d59f
commit
b36c9f789a
|
|
@ -97,8 +97,6 @@
|
|||
*/
|
||||
jsOMS.FormManager.prototype.bind = function (id)
|
||||
{
|
||||
this.forms = [];
|
||||
|
||||
if (typeof id !== 'undefined' && this.ignore.indexOf(id) === -1) {
|
||||
let form = document.getElementById(id);
|
||||
|
||||
|
|
@ -131,8 +129,8 @@
|
|||
jsOMS.FormManager.prototype.validateFormElement = function (e)
|
||||
{
|
||||
/** Validate on change */
|
||||
if (typeof e.dataset.validate !== 'undefined') {
|
||||
if (!(new RegExp(e.dataset.validate)).test(e.value)) {
|
||||
if (typeof e.pattern !== 'undefined') {
|
||||
if (!(new RegExp(e.pattern)).test(e.value)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user