Skip to content

Commit

Permalink
fix: work on /uploaduser/ path w/o index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
phette23 committed Aug 22, 2024
1 parent 2974de1 commit 47e979a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion additionalhtml/uploaduser.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// https://moodle.cca.edu/admin/tool/uploaduser/index.php
if (location.pathname.match('/admin/tool/uploaduser/index.php')) {
if (location.pathname.match('/admin/tool/uploaduser/')) {
// remove any "Default values" (cannot figure out how to do with via admin settings!)
document.querySelectorAll('#id_defaultheader input[type="text"]').forEach((el) => {
el.value = ''
Expand Down

0 comments on commit 47e979a

Please sign in to comment.