Skip to content

Commit 159a35e

Browse files
committed
Fix checks view
1 parent dae40bc commit 159a35e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

app/views/blazer/checks/_form.html.erb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<%= blazer_js_var "items", [@check.query_id].compact %>
1818

1919
$("#check_query_id").selectize({options: queries, items: items, highlight: false, maxOptions: 100}).parents(".d-none").removeClass("d-none");
20-
</script>
20+
<% end %>
2121
</div>
2222

2323
<% if @check.respond_to?(:check_type) %>
@@ -28,19 +28,19 @@
2828
<% check_options << ["Anomaly (most recent data point)", "anomaly"] if Blazer.anomaly_checks %>
2929
<%= f.select :check_type, check_options %>
3030
</div>
31-
<script>
31+
<%= javascript_tag nonce: true do %>
3232
$("#check_check_type").selectize({}).parent().removeClass("d-none");
33-
</script>
33+
<% end %>
3434
</div>
3535
<% elsif @check.respond_to?(:invert) %>
3636
<div class="form-group">
3737
<%= f.label :invert, "Fails if" %>
3838
<div class="d-none">
3939
<%= f.select :invert, [["Any results (bad data)", false], ["No results (missing data)", true]] %>
4040
</div>
41-
<script>
41+
<%= javascript_tag nonce: true do %>
4242
$("#check_invert").selectize({}).parent().removeClass("d-none");
43-
</script>
43+
<% end %>
4444
</div>
4545
<% end %>
4646

@@ -50,9 +50,9 @@
5050
<div class="d-none">
5151
<%= f.select :schedule, Blazer.check_schedules.map { |v| [v, v] } %>
5252
</div>
53-
<script>
53+
<%= javascript_tag nonce: true do %>
5454
$("#check_schedule").selectize({}).parent().removeClass("d-none");
55-
</script>
55+
<% end %>
5656
</div>
5757
<% end %>
5858

0 commit comments

Comments
 (0)