dev_haigong
parent
7ff20bbea2
commit
b9da38e82a
@ -1,7 +1,7 @@
|
|||||||
$("#task_pass_page").html("<%= j( render :partial => "single_or_multiple_question_show") %>");
|
$("#task_pass_page").html("<%= j( render :partial => "single_or_multiple_question_show") %>");
|
||||||
var html = '<a href="<%= show_choose_question_shixun_challenge_path(@challenge, :shixun_id => @shixun, :choose_id => @challenge_choose.id) %>" data-remote="true"><%= @challenge_choose.position %>.<%= @challenge_choose.category == 1 ? "单选题" : "多选题" %></a>'
|
var html = '<a href="<%= show_choose_question_shixun_challenge_path(@challenge, :shixun_id => @shixun, :choose_id => @challenge_choose.id) %>" data-remote="true"><%= @challenge_choose.position %>.<%= @challenge_choose.category == 1 ? "单选题" : "多选题" %></a>'
|
||||||
$(".active").html(html);
|
$(".click_active.active").html(html);
|
||||||
if($(".add_choose_type").length == 0 && $(".click_active").length < 11){
|
if($(".add_choose_type").length == 0 && $(".click_active").length < 11){
|
||||||
var html_1 ='<a href="<%= new_choose_question_shixun_challenge_path(@challenge, :shixun_id => @shixun) %>" data-remote="true" data-tip-down="新增选择题" class="add_choose_type" onclick="addChooseType(this);">+</a>';
|
var html_1 ='<a href="<%= new_choose_question_shixun_challenge_path(@challenge, :shixun_id => @shixun) %>" data-remote="true" data-tip-down="新增选择题" class="add_choose_type" onclick="addChooseType(this);">+</a>';
|
||||||
$(".active").after(html_1);
|
$(".click_active.active").after(html_1);
|
||||||
}
|
}
|
Loading…
Reference in new issue