Skip to content

Commit

Permalink
Fixed quality and compression variable names in _novnc.html.erb (#2995)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndusek authored Aug 31, 2023
1 parent eb515d6 commit b5cd9c4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@

<div class="row">
<div class="col-sm-6">
<%= f.number_field(:compressionsetting, class: 'custom-range', type: 'range', min: 0, max: 9, value: 6, label: "Compression", help: "0 (low) to 9 (high)") %>
<%= f.number_field(:compression, class: 'custom-range', type: 'range', min: 0, max: 9, value: 6, label: "Compression", help: "0 (low) to 9 (high)") %>
</div>
<div class="col-sm-6">
<%= f.number_field(:qualitysetting, class: 'custom-range', type: 'range', min: 0, max: 9, value: 2, label: "Image Quality", help: "0 (low) to 9 (high)") %>
<%= f.number_field(:quality, class: 'custom-range', type: 'range', min: 0, max: 9, value: 2, label: "Image Quality", help: "0 (low) to 9 (high)") %>
</div>
</div>

<%= javascript_tag nonce: true do -%>
// Functions defined in batch_connect_sessions.js
for(var name of ['compressionsetting', 'qualitysetting']) {
for(var name of ['compression', 'quality']) {
tryUpdateSetting(name);
installSettingHandlers(name);
}
Expand Down

0 comments on commit b5cd9c4

Please sign in to comment.