diff --git a/openlibrary/plugins/openlibrary/js/edit.js b/openlibrary/plugins/openlibrary/js/edit.js index 8a0827d09ee..0682568948d 100644 --- a/openlibrary/plugins/openlibrary/js/edit.js +++ b/openlibrary/plugins/openlibrary/js/edit.js @@ -231,14 +231,6 @@ export function validateIdentifiers(data) { return true; } -export function initIdentifierValidation() { - initJqueryRepeat(); - $('#identifiers').repeat({ - vars: {prefix: 'edition--'}, - validate: function(data) {return validateIdentifiers(data)}, - }); -} - export function initClassificationValidation() { initJqueryRepeat(); const dataConfig = JSON.parse(document.querySelector('#classifications').dataset.config); diff --git a/openlibrary/plugins/openlibrary/js/index.js b/openlibrary/plugins/openlibrary/js/index.js index 523b59071ea..c6993665ef4 100644 --- a/openlibrary/plugins/openlibrary/js/index.js +++ b/openlibrary/plugins/openlibrary/js/index.js @@ -99,7 +99,6 @@ jQuery(function () { const autocompleteSubjects = document.querySelector('.csv-autocomplete--subjects'); const addRowButton = document.getElementById('add_row_button'); const roles = document.querySelector('#roles'); - const identifiers = document.querySelector('#identifiers'); const classifications = document.querySelector('#classifications'); const excerpts = document.getElementById('excerpts'); const links = document.getElementById('links'); @@ -109,7 +108,7 @@ jQuery(function () { edition || autocompleteAuthor || autocompleteLanguage || autocompleteWorks || autocompleteSeeds || autocompleteSubjects || - addRowButton || roles || identifiers || classifications || + addRowButton || roles || classifications || excerpts || links ) { import(/* webpackChunkName: "user-website" */ './edit') @@ -132,9 +131,6 @@ jQuery(function () { if (roles) { module.initRoleValidation(); } - if (identifiers) { - module.initIdentifierValidation(); - } if (classifications) { module.initClassificationValidation(); }