dev_local
daiao 6 years ago
commit 1b2b3bfbbc

@ -128,12 +128,12 @@
<p class="clearfix pr mb20 mt20">
<span class="fl mt5 mr10 color-orange">*</span>
<span class="color-blue font-16 fl mr20" name="sample_inputs_label">组<%= index+1 %></span>
<% if @challenge.test_set_score %>
<span class="fl color-grey-6 width90px mt3" name="percentagenumbox">
<input class="fl martopf4 width44pxinline" disabled name="percentagenum">
<input class="fl martopf4 width44pxinline" disabled name="percentagenum" value="<%= test.score %>">
<span class="mr15 wid10px">%</span>
</span>
<% end %>
<span class="fl color-grey-6">
<input type="checkbox" name="test_set[lock][]" <%= test.is_public? ? '' : 'checked' %> disabled class="magic-checkbox" id="hide-<%= index %>"/>
@ -165,10 +165,10 @@
$(function(){
//填写百分比初始化
$("#All_tests").attr('checked', 'checked');
if($("#All_tests").is(":checked")){
$("#System_score_percentage").hide() //控制系统评分占比的显示
}
// $("#All_tests").attr('checked', 'checked');
// if($("#All_tests").is(":checked")){
// $("#System_score_percentage").hide() //控制系统评分占比的显示
// }
var percentagenumbox = document.getElementsByName("percentagenumbox"); //控制获取所有的input 的显示
var percentagelist = document.getElementsByName("percentagenum"); //获取所有的input 百分比框

Loading…
Cancel
Save