mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-01-11 09:58:39 +00:00
Formatting and bug fixes
This commit is contained in:
parent
9167fc8873
commit
fde528916a
|
|
@ -22,12 +22,12 @@
|
|||
if (typeof id !== 'undefined') {
|
||||
this.bindButton(id)
|
||||
} else {
|
||||
let buttons = document.getElementsByTagName('form'),
|
||||
let buttons = document.getElementsByTagName('button'),
|
||||
length = buttons.length;
|
||||
|
||||
for (var i = 0; i < length; i++) {
|
||||
if (typeof buttons[i].getAttribute('data-action') !== 'undefined') {
|
||||
this.bind(buttons[i].id);
|
||||
if (typeof buttons[i].getAttribute('data-action') !== 'undefined' && buttons[i].getAttribute('id') !== null) {
|
||||
this.bindButton(buttons[i].getAttribute('id'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -48,8 +48,8 @@
|
|||
length = forms.length;
|
||||
|
||||
for (var i = 0; i < length; i++) {
|
||||
if (typeof this.ignore[forms[i].id] === 'undefined') {
|
||||
this.bindForm(forms[i].id);
|
||||
if (typeof forms[i].getAttribute('id') !== 'undefined' && forms[i].getAttribute('id') !== null && typeof this.ignore[forms[i].getAttribute('id')] === 'undefined') {
|
||||
this.bindForm(forms[i].getAttribute('id'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -62,14 +62,11 @@
|
|||
return;
|
||||
}
|
||||
|
||||
let self = this;
|
||||
let self = this;
|
||||
this.forms[id] = new jsOMS.Views.FormView(id);
|
||||
|
||||
this.unbind(id);
|
||||
|
||||
if (typeof this.ignore[id] === 'undefined') {
|
||||
this.forms[id] = new jsOMS.Views.FormView(id);
|
||||
}
|
||||
|
||||
this.forms[id].getSubmit().addEventListener('click', function (event)
|
||||
{
|
||||
jsOMS.preventAll(event);
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
this.formManager = new jsOMS.UI.FormManager(this.app);
|
||||
this.tabManager = new jsOMS.UI.TabManager(this.app.responseManager);
|
||||
this.tableManager = new jsOMS.UI.TableManager(this.app.responseManager);
|
||||
this.button = new jsOMS.Ui.Button(this.app);
|
||||
this.button = new jsOMS.UI.Button(this.app);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user