mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-02-16 09:18:42 +00:00
fix typos
This commit is contained in:
parent
549c46761e
commit
d2c454a215
|
|
@ -202,7 +202,7 @@ export class Form {
|
||||||
/**
|
/**
|
||||||
* Submit form
|
* Submit form
|
||||||
*
|
*
|
||||||
* Calls injections first befor executing the actual form submit
|
* Calls injections first before executing the actual form submit
|
||||||
*
|
*
|
||||||
* @param {Object} form Form object
|
* @param {Object} form Form object
|
||||||
*
|
*
|
||||||
|
|
@ -481,7 +481,8 @@ export class Form {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
bindUpdatableInline(update, id) {
|
bindUpdatableInline(update, id)
|
||||||
|
{
|
||||||
const self = this;
|
const self = this;
|
||||||
|
|
||||||
update.addEventListener('click', function () {
|
update.addEventListener('click', function () {
|
||||||
|
|
@ -688,8 +689,7 @@ export class Form {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// todo: submit changes to backend/api
|
self.submit(self.forms[id]);
|
||||||
|
|
||||||
self.removeEditTemplate(this, id);
|
self.removeEditTemplate(this, id);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -126,7 +126,8 @@ export class FormView {
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
getUpdate() {
|
getUpdate ()
|
||||||
|
{
|
||||||
return document.querySelectorAll(
|
return document.querySelectorAll(
|
||||||
'button[form=' + this.id + '].update, '
|
'button[form=' + this.id + '].update, '
|
||||||
+ '.update[data-form=' + this.id + '], '
|
+ '.update[data-form=' + this.id + '], '
|
||||||
|
|
@ -141,7 +142,8 @@ export class FormView {
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
getSave() {
|
getSave ()
|
||||||
|
{
|
||||||
return document.querySelectorAll(
|
return document.querySelectorAll(
|
||||||
'button[form=' + this.id + '].save, '
|
'button[form=' + this.id + '].save, '
|
||||||
+ '.save[data-form=' + this.id + '], '
|
+ '.save[data-form=' + this.id + '], '
|
||||||
|
|
@ -156,7 +158,8 @@ export class FormView {
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
getCancel() {
|
getCancel ()
|
||||||
|
{
|
||||||
return document.querySelectorAll(
|
return document.querySelectorAll(
|
||||||
'button[form=' + this.id + '].cancel, '
|
'button[form=' + this.id + '].cancel, '
|
||||||
+ '.cancel[data-form=' + this.id + '], '
|
+ '.cancel[data-form=' + this.id + '], '
|
||||||
|
|
@ -171,7 +174,8 @@ export class FormView {
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
getRemove() {
|
getRemove ()
|
||||||
|
{
|
||||||
return document.querySelectorAll(
|
return document.querySelectorAll(
|
||||||
'button[form=' + this.id + '].remove, '
|
'button[form=' + this.id + '].remove, '
|
||||||
+ '.remove[data-form=' + this.id + '], '
|
+ '.remove[data-form=' + this.id + '], '
|
||||||
|
|
@ -187,7 +191,8 @@ export class FormView {
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
* @todo isn't this the same as submit in some cases? form below table?
|
* @todo isn't this the same as submit in some cases? form below table?
|
||||||
*/
|
*/
|
||||||
getAdd() {
|
getAdd ()
|
||||||
|
{
|
||||||
return document.querySelectorAll(
|
return document.querySelectorAll(
|
||||||
'button[form=' + this.id + '].add, '
|
'button[form=' + this.id + '].add, '
|
||||||
+ '.add[data-form=' + this.id + '], '
|
+ '.add[data-form=' + this.id + '], '
|
||||||
|
|
@ -228,7 +233,8 @@ export class FormView {
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
getFinally() {
|
getFinally ()
|
||||||
|
{
|
||||||
return this.finally;
|
return this.finally;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -497,8 +503,8 @@ export class FormView {
|
||||||
|
|
||||||
if (typeof e.attributes['action'] !== 'undefined') {
|
if (typeof e.attributes['action'] !== 'undefined') {
|
||||||
this.action = e.attributes['action'].value;
|
this.action = e.attributes['action'].value;
|
||||||
} else if (typeof e.attributes['data-action'] !== 'undefined') {
|
} else if (typeof e.attributes['data-uri'] !== 'undefined') {
|
||||||
this.action = e.attributes['data-action'].value;
|
this.action = e.attributes['data-uri'].value;
|
||||||
} else {
|
} else {
|
||||||
this.action = 'EMPTY';
|
this.action = 'EMPTY';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user