fix(templates): remove obsolete collections.js reference and fix onclick handler
Remove the script tag for collections.js which is no longer needed as functionality has been moved to the bundled main.js. Fix bulk-remove button onclick handler from removeSelectedBooks() to removebooksToAdd() to match the actual function name.
This commit is contained in:
@@ -11,7 +11,6 @@ templ Collection(user User, collections []CollectionData, errorMessage string) {
|
|||||||
<title>Collections - Bookhoard</title>
|
<title>Collections - Bookhoard</title>
|
||||||
<script src="/static/htmx.min.js"></script>
|
<script src="/static/htmx.min.js"></script>
|
||||||
<script src="/static/toast.js"></script>
|
<script src="/static/toast.js"></script>
|
||||||
<script src="/static/collections.js"></script>
|
|
||||||
<link href="/static/style.css" rel="stylesheet"/>
|
<link href="/static/style.css" rel="stylesheet"/>
|
||||||
</head>
|
</head>
|
||||||
<body class="theme-{ user.Theme }">
|
<body class="theme-{ user.Theme }">
|
||||||
@@ -148,7 +147,7 @@ templ CollectionDetail(user User, collection CollectionData, books []handlers.Bo
|
|||||||
</div>
|
</div>
|
||||||
<button
|
<button
|
||||||
id="bulk-remove-btn"
|
id="bulk-remove-btn"
|
||||||
onclick="removeSelectedBooks()"
|
onclick="removebooksToAdd()"
|
||||||
disabled
|
disabled
|
||||||
class="btn-danger px-4 py-2 rounded-lg disabled:opacity-50 disabled:cursor-not-allowed"
|
class="btn-danger px-4 py-2 rounded-lg disabled:opacity-50 disabled:cursor-not-allowed"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user