unused developments ejected
This commit is contained in:
20
resources/assets/js/views/common/documents.js
vendored
20
resources/assets/js/views/common/documents.js
vendored
@ -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(',', '.');
|
||||
}
|
||||
},
|
||||
},
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user