From 946411ad4da0249a1c991f895aa12e5fbf97ecb4 Mon Sep 17 00:00:00 2001 From: srivastava-jyoti Date: Wed, 9 Oct 2024 12:43:02 +0530 Subject: [PATCH] added copies --- resources/js/app.js | 4 ++++ .../knowledgecafe/library/books/index.blade.php | 15 ++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/resources/js/app.js b/resources/js/app.js index adf7d7e22e..969fa49315 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -971,6 +971,10 @@ if (document.getElementById("books_listing")) { allCategoryInputs.forEach( (checkbox) => (this.categoryInputs[checkbox.value] = checkbox) ); + let locationsData = document.getElementById("books_table").dataset.locationData; + if (locationsData) { + this.copies = JSON.parse(locationsData); + } }, }); } diff --git a/resources/views/knowledgecafe/library/books/index.blade.php b/resources/views/knowledgecafe/library/books/index.blade.php index a06abe429a..5f87190103 100644 --- a/resources/views/knowledgecafe/library/books/index.blade.php +++ b/resources/views/knowledgecafe/library/books/index.blade.php @@ -55,7 +55,7 @@ @endif -
+
@@ -164,3 +164,16 @@ @include('knowledgecafe.library.books.update-category-modal')
@endsection + +