Merge branch 'develop' of http://repository.trustie.net/xianbo/trustie2 into develop
This commit is contained in:
commit
cb51545a31
|
@ -20,7 +20,7 @@
|
||||||
<a class="btn_submit c_white" data-button="ok" onclick="pollsSubmit($(this));">
|
<a class="btn_submit c_white" data-button="ok" onclick="pollsSubmit($(this));">
|
||||||
保存
|
保存
|
||||||
</a>
|
</a>
|
||||||
<a class="btn_cancel" data-button="cancel" onclick="resetHead();pollsCancel();">
|
<a class="btn_cancel" data-button="cancel" onclick="pollsCancel();">
|
||||||
<%= l(:button_cancel)%>
|
<%= l(:button_cancel)%>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -35,6 +35,6 @@
|
||||||
$("#exercise_time").val("<%=exercise.time if exercise.time!= -1 %>");
|
$("#exercise_time").val("<%=exercise.time if exercise.time!= -1 %>");
|
||||||
$("#exercise_publish_time").val("<%= Time.parse(format_time(exercise.publish_time)).strftime("%Y-%m-%d") if !exercise.publish_time.nil?%>");
|
$("#exercise_publish_time").val("<%= Time.parse(format_time(exercise.publish_time)).strftime("%Y-%m-%d") if !exercise.publish_time.nil?%>");
|
||||||
/*$("#exercise_description").text("<%#=exercise.exercise_description.html_safe %>");*/
|
/*$("#exercise_description").text("<%#=exercise.exercise_description.html_safe %>");*/
|
||||||
document.getElementById("exercise_description").innerText = <%=exercise.exercise_description.html_safe %>;
|
document.getElementById("exercise_description").innerHTML = <%=exercise.exercise_description.html_safe %>;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
Loading…
Reference in New Issue