mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-14 09:04:56 +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
|
repository_id: int
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
print: function(modalUrl, progressModal, printModal, printData) {
|
print: function(modalUrl, progressModal, printModal, printData, finishedCallback = null) {
|
||||||
var modal = $(progressModal);
|
var modal = $(progressModal);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
|
@ -224,7 +224,7 @@ var zebraPrint = (function() {
|
||||||
}
|
}
|
||||||
}).fail(() => {
|
}).fail(() => {
|
||||||
HelperModule.flashAlertMsg(I18n.t('repository_row.modal_print_label.general_error'), 'danger');
|
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,
|
label_template_id: this.selectedTemplate.id,
|
||||||
row_ids: this.row_ids,
|
row_ids: this.row_ids,
|
||||||
repository_id: this.repository_id
|
repository_id: this.repository_id
|
||||||
|
},
|
||||||
|
() => {
|
||||||
|
this.submitting = false;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue