File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,13 +26,13 @@ var elementIdAttribute = 'data-affiliation-element-id';
2626 * added or removed. This code is reposible for creating the HTML for the dialog box, adding a search button to
2727 * the affiliation name fields and creating the triggers for initializing the dialog box and the search action itself.
2828 */
29- ( function ( ) {
29+ $ ( document ) . ready ( function ( ) {
3030 // Create Dialog box, if necessary
3131 createAffiliationModal ( ) ;
3232
3333 // Put a search button after each affiliation name field
3434 putAffiliationSearchIcon ( ) ;
35- } ) ( ) ;
35+ } ) ;
3636
3737function createAffiliationModal ( ) {
3838 let affiliationModal = document . getElementById ( affiliationModalId ) ;
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ var authorSelector = "div#metadata_author ~ div.dataset-field-values div.edit-co
2424 * added or removed. This code is reposible for creating the HTML for the dialog box, adding a search button to
2525 * the author name fields and creating the triggers for initializing the dialog box and the search action itself.
2626 */
27- ( function ( ) {
27+ $ ( document ) . ready ( function ( ) {
2828 let authorModal = document . getElementById ( 'author-modal' ) ;
2929 if ( ! authorModal ) {
3030 // Create modal dialog
@@ -93,7 +93,7 @@ var authorSelector = "div#metadata_author ~ div.dataset-field-values div.edit-co
9393 authorNameField . appendChild ( wrapper ) ;
9494 }
9595 } )
96- } ) ( ) ;
96+ } ) ;
9797
9898var page_size = 10 ; // Number of results that will be displayed on a single page
9999
You can’t perform that action at this time.
0 commit comments