From 3ecfeeb3e98ece778a48e92a154b240f7fbf590a Mon Sep 17 00:00:00 2001 From: Paul Derscheid Date: Tue, 17 Sep 2024 18:02:51 +0000 Subject: [PATCH] Bug 37812: Prevent initialisation failure by using modal methods, not plain show, hide Signed-off-by: David Nind Signed-off-by: Martin Renvoize --- .../js/vue/components/Preservation/TrainsShow.vue | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsShow.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsShow.vue index 407c560dd5..9b3496b09d 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsShow.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsShow.vue @@ -16,7 +16,7 @@ @@ -60,7 +60,7 @@ @@ -522,7 +522,7 @@ export default { ) }, selectTrainForCopy(train_item_id) { - $("#copy_item_to_train").show() + $("#copy_item_to_train").modal("show") this.train_item_id_to_copy = train_item_id }, copyItem(event) { @@ -537,7 +537,7 @@ export default { .then( success => { this.setMessage(this.$__("Item copied successfully.")) - this.closeModal() + $("#copy_item_to_train").modal("hide") }, error => { this.setWarning( @@ -548,9 +548,6 @@ export default { } ) }, - closeModal() { - $("#copy_item_to_train").hide() - }, clearAll() { this.selected_items = [] if (this.item_table.display) { -- 2.39.5