修改匿评弹出框样式

This commit is contained in:
sw 2014-11-03 18:45:53 +08:00
parent b625a857e9
commit e2897b3d1a
7 changed files with 14 additions and 17 deletions

View File

@ -31,11 +31,19 @@
{
<% if !@is_teacher && @homework_list.count > 0 && @bid.comment_status == 1%>
//登录者不是老师且作业列表数目不为0且作业处于开启匿评阶段
var alert_model = "'#ajax-modal'";
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'homework_attach/praise_alert') %>');
showModal('ajax-modal', '480px');
$('#ajax-modal').css('height','240px');
$('#ajax-modal').before("<span style='float: right;padding-left: 455px;cursor:pointer;'>" +
"<a href='#' onclick='hiddent_alert_model();'><img src='/images/bid/close.png' width='26px' height='26px' /></a></span>");
<% end %>
}
function hiddent_alert_model()
{
hideModal($('#popbox02'));
}
</script>
</div>
<div id='bidding_project_list'>

View File

@ -54,6 +54,7 @@
<p class="buttons" style="padding-top: 10px; padding-bottom: 1px; margin-bottom: 1px">
<%= submit_tag l(:label_new_join), :name => nil, :class => "bid_btn", :onclick => "hideModal(this);" %>
<%= submit_tag l(:button_cancel), :name => nil, :class => "bid_btn", :onclick => "hideModal(this);", :type => 'button' %>
</p>
</td>
</tr></table>
<% end %>

View File

@ -3,17 +3,10 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>作业评分弹框</title>
<%= stylesheet_link_tag 'css'%>
</head>
<body>
<div id="popbox02">
<!--<div class="alert" style="position: fixed;">-->
<!--<div>-->
<!--<span class="close02" style="display: block;" onclick="hideModal(this)"></span>-->
<!--</div>-->
<!--</div>-->
<div class="ni_con">
<h2><img src="/images/bid/pic_top.jpg" width="188" height="37" alt="匿名评价" /></h2>
<p>&nbsp;&nbsp;&nbsp;&nbsp;据说雷锋做完好事是从来不留名的呢,我们这次评分也不留名!!!但是,但是,您给的分数一定要公正哦,老天爷看不到,我们的系统可是清楚得很!</p>

BIN
public/images/bid/close.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

File diff suppressed because one or more lines are too long

View File

@ -2854,9 +2854,4 @@ div.repos_explain{
#membership_project_id option
{
width: 190px;
}
.ui-dialog-titlebar {
border: 0;
background: none;
}

View File

@ -148,7 +148,7 @@ a:hover.tijiao{ background:#0f99a9 !important;}
.ni_con p{ color:#808181;}
.ni_con a:hover{ text-decoration:none;}
/*.ui-widget-header{display: none;}*/
.ui-widget-header{display: none;}