fix typos

This commit is contained in:
Dennis Eichhorn 2019-05-19 14:19:31 +02:00
parent 549c46761e
commit d2c454a215
2 changed files with 18 additions and 12 deletions

View File

@ -202,7 +202,7 @@ export class 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
*
@ -481,7 +481,8 @@ export class Form {
}
};
bindUpdatableInline(update, id) {
bindUpdatableInline(update, id)
{
const self = this;
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);
});
}

View File

@ -126,7 +126,8 @@ export class FormView {
*
* @since 1.0.0
*/
getUpdate() {
getUpdate ()
{
return document.querySelectorAll(
'button[form=' + this.id + '].update, '
+ '.update[data-form=' + this.id + '], '
@ -141,7 +142,8 @@ export class FormView {
*
* @since 1.0.0
*/
getSave() {
getSave ()
{
return document.querySelectorAll(
'button[form=' + this.id + '].save, '
+ '.save[data-form=' + this.id + '], '
@ -156,7 +158,8 @@ export class FormView {
*
* @since 1.0.0
*/
getCancel() {
getCancel ()
{
return document.querySelectorAll(
'button[form=' + this.id + '].cancel, '
+ '.cancel[data-form=' + this.id + '], '
@ -171,7 +174,8 @@ export class FormView {
*
* @since 1.0.0
*/
getRemove() {
getRemove ()
{
return document.querySelectorAll(
'button[form=' + this.id + '].remove, '
+ '.remove[data-form=' + this.id + '], '
@ -187,7 +191,8 @@ export class FormView {
* @since 1.0.0
* @todo isn't this the same as submit in some cases? form below table?
*/
getAdd() {
getAdd ()
{
return document.querySelectorAll(
'button[form=' + this.id + '].add, '
+ '.add[data-form=' + this.id + '], '
@ -228,7 +233,8 @@ export class FormView {
*
* @since 1.0.0
*/
getFinally() {
getFinally ()
{
return this.finally;
};
@ -497,8 +503,8 @@ export class FormView {
if (typeof e.attributes['action'] !== 'undefined') {
this.action = e.attributes['action'].value;
} else if (typeof e.attributes['data-action'] !== 'undefined') {
this.action = e.attributes['data-action'].value;
} else if (typeof e.attributes['data-uri'] !== 'undefined') {
this.action = e.attributes['data-uri'].value;
} else {
this.action = 'EMPTY';
}