mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-02-16 01:08: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)
|
jsOMS.FormManager.prototype.bind = function (id)
|
||||||
{
|
{
|
||||||
this.forms = [];
|
|
||||||
|
|
||||||
if (typeof id !== 'undefined' && this.ignore.indexOf(id) === -1) {
|
if (typeof id !== 'undefined' && this.ignore.indexOf(id) === -1) {
|
||||||
let form = document.getElementById(id);
|
let form = document.getElementById(id);
|
||||||
|
|
||||||
|
|
@ -131,8 +129,8 @@
|
||||||
jsOMS.FormManager.prototype.validateFormElement = function (e)
|
jsOMS.FormManager.prototype.validateFormElement = function (e)
|
||||||
{
|
{
|
||||||
/** Validate on change */
|
/** Validate on change */
|
||||||
if (typeof e.dataset.validate !== 'undefined') {
|
if (typeof e.pattern !== 'undefined') {
|
||||||
if (!(new RegExp(e.dataset.validate)).test(e.value)) {
|
if (!(new RegExp(e.pattern)).test(e.value)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user