Skip to content

Commit

Permalink
Fix for D. Key Editor links no longer appearing on all D. Key admin p…
Browse files Browse the repository at this point in the history
…ages. (see #679)

It was only appearing on the main D. Key Admin page, not
all of the sub-pages as seen in Production.
  • Loading branch information
jnga committed Oct 31, 2020
1 parent 6dc7e80 commit 957e978
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gobotany/static/admin/admin_gb.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// Go Botany Admin: customizations

// Django assigns jQuery's $ to django.jQuery
django.jQuery(document).ready(function () {
// Django assigns jQuery's $ to django.jQuery, but in some cases
// it's not ready right away, so use a non-jQuery way to start.
document.addEventListener("DOMContentLoaded", function (event) {

// Pagination: Go To Page customization (see pagination.html):

Expand Down Expand Up @@ -39,5 +40,4 @@ django.jQuery(document).ready(function () {
django.jQuery('#id_state').focus();
}
}
});

});

0 comments on commit 957e978

Please sign in to comment.