Sha256: a01ca806efe97d709d3273fc4e3f4ecc47a49f4078456a25a7b18c6650de9ca6
Contents?: true
Size: 1.04 KB
Versions: 9
Compression:
Stored size: 1.04 KB
Contents
<script type="text/javascript"> function updateHpgVisibility(){ <% hpg= {}; stats.each do |k, v| hpg[k] = !v['neighbours'].empty? end %> hpg = <%=hpg.to_json%>; if( !hpg[ $("#dispatcher option:selected").val() ] ) { $('.hpg').hide(); $('.hpg_options').hide(); } else { $('.hpg').show(); } } function updateHpgOptionsVisibility(){ if( !$("#high_performance_checkbox").is(':checked') ) { $('.hpg_options').hide(); } else { $('.hpg_options').show(); } } updateHpgOptionsVisibility(); $('#high_performance_checkbox').change(function () { updateHpgOptionsVisibility(); }); updateHpgVisibility(); $('#dispatcher').change(function () { updateHpgVisibility(); }); </script>
Version data entries
9 entries across 9 versions & 1 rubygems