Skip to content

Commit

Permalink
4474/refactor/moving inline js out of lib (internetarchive#4499)
Browse files Browse the repository at this point in the history
Moved inline js out of lib/history.html into index.js entry point
  • Loading branch information
navneetsaluja authored and Sabreen-Parveen committed Feb 5, 2021
1 parent 97ee754 commit 0ed7b9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 2 additions & 0 deletions openlibrary/plugins/openlibrary/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,6 @@ jQuery(function () {
$(document).on('click', '.slide-toggle', function () {
$(`#${$(this).attr('aria-controls')}`).slideToggle();
});

$('#wikiselect').on('focus', function(){$(this).select();})
});
8 changes: 0 additions & 8 deletions openlibrary/templates/lib/history.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,6 @@ <h2>Wikipedia citation</h2>
</form>
</div>
</div>

<script type="text/javascript">
<!--
window.q.push(function(){
\$('#wikiselect').focus(function(){\$(this).select();})
});
//-->
</script>
</div>

<table class="history">
Expand Down

0 comments on commit 0ed7b9e

Please sign in to comment.