Skip to content

Commit a5a1340

Browse files
committed
Further tweaks
1 parent 1d834ab commit a5a1340

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ permissions: {}
1313
jobs:
1414
# https://docs.pypi.org/trusted-publishers/using-a-publisher/
1515
release:
16+
name: Publish to PyPI
1617
runs-on: ubuntu-latest
1718
if: github.repository_owner == 'torchbox' && github.event.action == 'published'
1819
environment:

src/wagtailmedia/static/wagtailmedia/js/media-chooser-modal.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,20 +71,19 @@ MEDIA_CHOOSER_MODAL_ONLOAD_HANDLERS = {
7171

7272
function search() {
7373
const query = searchInput.val();
74-
const collection_id = collectionChooser.val()
75-
if (query !== '' || collection_id !== '') {
76-
/* Searching causes currentTag to be cleared - otherwise there's
77-
no way to de-select a tag */
74+
const collectionId = collectionChooser.val();
75+
if (query !== '' || collectionId !== '') {
76+
/* Searching causes currentTag to be cleared - otherwise there's no way to de-select a tag */
7877
currentTag = null;
7978
request = fetchResults({
8079
q: query,
81-
collection_id: collection_id
80+
collection_id: collectionId
8281
});
8382
}
8483
else {
8584
/* search box is empty - restore original page browser HTML */
8685
resultsContainer.html(initialPageResultsHtml);
87-
ajaxifyLinks();
86+
ajaxifyLinks(resultsContainer);
8887
}
8988
return false;
9089
}

0 commit comments

Comments
 (0)