mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-11 23:54:43 +08:00
Fix print button stuck as disabled when printing via a Zebra printer [SCI-9221]
This commit is contained in:
parent
48f0987982
commit
1c4db80d16
2 changed files with 5 additions and 2 deletions
|
@ -182,7 +182,7 @@ var zebraPrint = (function() {
|
|||
repository_id: int
|
||||
}
|
||||
*/
|
||||
print: function(modalUrl, progressModal, printModal, printData) {
|
||||
print: function(modalUrl, progressModal, printModal, printData, finishedCallback = null) {
|
||||
var modal = $(progressModal);
|
||||
$.ajax({
|
||||
method: 'GET',
|
||||
|
@ -224,7 +224,7 @@ var zebraPrint = (function() {
|
|||
}
|
||||
}).fail(() => {
|
||||
HelperModule.flashAlertMsg(I18n.t('repository_row.modal_print_label.general_error'), 'danger');
|
||||
});
|
||||
}).always(() => { if (finishedCallback) finishedCallback(); });
|
||||
}
|
||||
};
|
||||
}());
|
||||
|
|
|
@ -238,6 +238,9 @@ export default {
|
|||
label_template_id: this.selectedTemplate.id,
|
||||
row_ids: this.row_ids,
|
||||
repository_id: this.repository_id
|
||||
},
|
||||
() => {
|
||||
this.submitting = false;
|
||||
}
|
||||
);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue