Merge branch 'Poll' of http://repository.trustie.net/xianbo/trustie2 into Poll
commit
40d6ebfd88
@ -1,3 +1,12 @@
|
|||||||
<div id="popbox">
|
<div id="popbox" style="text-align: center;margin-top: 25px">
|
||||||
shaksdkfdks
|
<% if status == 0 %>
|
||||||
|
<h3 style="font-weight: normal;color: green">提交成功!</h3>
|
||||||
|
<%= link_to "确定", poll_index_path(:polls_group_id => @course.id,:polls_type => 'Course'),:class => 'commit'%>
|
||||||
|
<% elsif status == 1 %>
|
||||||
|
<h3 style="font-weight: normal;color: red">您还有尚未作答的题目请完成后在提交!</h3>
|
||||||
|
<%= link_to "确定", "javascript:void(0)",:onclick => 'hidden_atert_form();',:class => 'commit'%>
|
||||||
|
<% else %>
|
||||||
|
<h3 style="font-weight: normal;color: red">发生未知错误,请检查您的网络。</h3>
|
||||||
|
<%= link_to "确定", "javascript:void(0)",:onclick => 'hidden_atert_form();',:class => 'commit'%>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'commit_alert') %>');
|
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'commit_alert',:locals => {:status => @status}) %>');
|
||||||
showModal('ajax-modal', '513px');
|
showModal('ajax-modal', '400px');
|
||||||
$('#ajax-modal').css('height','200px');
|
$('#ajax-modal').css('height','100px');
|
||||||
$('#ajax-modal').siblings().remove();
|
$('#ajax-modal').siblings().remove();
|
||||||
$('#ajax-modal').before("<span style='float: right;cursor:pointer;padding-left: 513px;'>" +
|
$('#ajax-modal').before("<span style='float: right;cursor:pointer;'>" +
|
||||||
"<a href='#' onclick='hidden_atert_form();'><img src='/images/bid/close.png' width='26px' height='26px' /></a></span>");
|
"<a href='#' onclick='hidden_atert_form();'><img src='/images/bid/close.png' width='26px' height='26px' /></a></span>");
|
||||||
$('#ajax-modal').parent().removeClass("alert_praise");
|
$('#ajax-modal').parent().removeClass("alert_praise");
|
||||||
$('#ajax-modal').parent().css("top","50%").css("left","20%");
|
$('#ajax-modal').parent().css("top","").css("left","");
|
||||||
$('#ajax-modal').parent().css("position","absolute");
|
|
||||||
$('#ajax-modal').parent().addClass("alert_box");
|
$('#ajax-modal').parent().addClass("alert_box");
|
Loading…
Reference in new issue