File tree Expand file tree Collapse file tree
src/wagtailmedia/static/wagtailmedia/js Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ permissions: {}
1313jobs :
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 :
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments