Skip to content

Commit

Permalink
fix fmu script to not error on different pages
Browse files Browse the repository at this point in the history
  • Loading branch information
tsubik committed Apr 20, 2023
1 parent 22925c7 commit 636765e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/fmu.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$(document).ready(function() {
const forestType = document.getElementById('fmu_forest_type');
if (forestType== null || $(forestType).prop('disabled') == true){
const forestType = $('#fmu_forest_type:not([type="checkbox"])');
if (forestType.length === 0 || forestType.prop('disabled') == true){
return
}
updateFmuFields();
Expand Down

0 comments on commit 636765e

Please sign in to comment.