Skip to content

Commit 6931f1b

Browse files
committed
Undo document ready change
1 parent 376651d commit 6931f1b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/affiliation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

3737
function createAffiliationModal() {
3838
let affiliationModal = document.getElementById(affiliationModalId);

scripts/authors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

9898
var page_size = 10; // Number of results that will be displayed on a single page
9999

0 commit comments

Comments
 (0)