Skip to content

Commit

Permalink
bugfix - Disable file id to be populate by user
Browse files Browse the repository at this point in the history
  • Loading branch information
taleksovska committed Feb 7, 2024
1 parent f581068 commit de92837
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ckanext/scheming/templates/scheming/form_snippets/text.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
<script>
function disableFileId() {
var file_id = document.getElementById('field-id');
if (file_id !== null && file_id.value !== '') {
file_id.disabled = true;
}
file_id.disabled = true;
}

disableFileId();
Expand Down

0 comments on commit de92837

Please sign in to comment.