unused developments ejected

This commit is contained in:
Burak Civan
2022-07-26 14:00:41 +03:00
parent 279ec491e8
commit e7c5dd885e
4 changed files with 13 additions and 23 deletions

View File

@ -76,7 +76,6 @@ const app = new Vue({
',,'
],
email_template: false,
minor_form_loading: false
}
},
@ -662,11 +661,13 @@ const app = new Vue({
if (response.data.error) {
this.form.loading = false;
this.form.response = response.data;
}
})
.catch(error => {
this.form.loading = false;
this.form.onFail(error);
this.method_show_html = error.message;
@ -945,7 +946,7 @@ const app = new Vue({
let form_html = document.querySelector('form');
if (form_html && form_html.getAttribute('id') == 'document') {
form_html.querySelectorAll('input, textarea, select, ul, li, a').forEach((element) => {
form_html.querySelectorAll('input, textarea, select, ul, li, a, [type="button"]').forEach((element) => {
element.addEventListener('click', () => {
this.onBeforeUnload();
});
@ -969,18 +970,7 @@ const app = new Vue({
onSubmitViaSendEmail() {
this.form['senddocument'] = true;
this.minor_form_loading = true;
this.onSubmit();
this.form.loading = false;
setTimeout(() => {
if (Object.keys(this.form.errors.errors.length > 0)) {
this.minor_form_loading = false;
return;
}
}, 200);
},
},
@ -1120,6 +1110,6 @@ const app = new Vue({
}
this.form.discount = this.form.discount.replace(',', '.');
}
},
},
});
});