调整按钮样式

This commit is contained in:
z9hang 2014-11-03 18:34:06 +08:00
parent 86653c7b66
commit 990c37061b
6 changed files with 20 additions and 18 deletions

View File

@ -16,8 +16,6 @@
function submit1(button) function submit1(button)
{ {
$('#jours_submit').parent().submit(); $('#jours_submit').parent().submit();
// button.submit();
alert("d");
} }
</script> </script>
@ -40,12 +38,16 @@
<td><%= f.text_area 'message', :rows => 3, :cols => 65, :placeholder => l(:label_max_length), :style => "resize: none;", :class => 'noline'%></td> <td><%= f.text_area 'message', :rows => 3, :cols => 65, :placeholder => l(:label_max_length), :style => "resize: none;", :class => 'noline'%></td>
<% end %> <% end %>
</tr> </tr>
<tr>
<td><%= f.text_field :reference_user_id, :style=>"display:none"%>
<a href="#" class="ping_sub" onclick = "clearMessage('bid_message_message');"><%= l(:button_clear_meassge) %></a>
<a href="#" class="ping_sub" id="jours_submit" onclick="submit1();"><%= l(:label_responses) %></a></td>
</tr>
</table> </table>
<%= f.text_field :reference_user_id, :style=>"display:none"%>
<!-- modified by bai 525px --> <!-- modified by bai 525px -->
<a href="#" class="ping_sub" id="jours_submit" onclick="submit1();">留言</a>
<a href="#" class="ping_sub" onclick = "clearMessage('bid_message_message');"><%= l(:button_clear_meassge) %></a>
<!-- end --> <!-- end -->
<% else %> <% else %>

View File

@ -49,6 +49,11 @@
$('#' + id).val(content); $('#' + id).val(content);
} }
} }
function submit1(button)
{
$('#jours_submit').parent().submit();
}
</script> </script>
<%= form_for('new_form', :remote => true, :method => :post, <%= form_for('new_form', :remote => true, :method => :post,
@ -67,14 +72,8 @@
:style => "resize: none;", :class => 'noline', :placeholder => l(:text_caracters_maximum,:count=>250)%> :style => "resize: none;", :class => 'noline', :placeholder => l(:text_caracters_maximum,:count=>250)%>
<%= f.text_field :reference_user_id, :style=>"display:none"%> <%= f.text_field :reference_user_id, :style=>"display:none"%>
<div style="float:right"> <div style="float:right">
<%= submit_tag l(:button_leave_meassge), <a href="#" class="ping_sub1" id="jours_submit" onclick="submit1();"><%= l(:label_submit_comments) %></a>
:name => nil , :class => "enterprise",
:onmouseout => "this.style.backgroundPosition = 'left top'",
:onmouseover => "this.style.backgroundPosition = 'left -31px'"%>
<%= submit_tag l(:button_clear_meassge), :name => nil, :class => "enterprise",
:onclick => "clearMessage('new_form_user_message');",
:onmouseout => "this.style.backgroundPosition = 'left top'",
:onmouseover => "this.style.backgroundPosition = 'left -31px'" %>
</div> </div>
<% else %> <% else %>
<div style="font-size: 14px;margin:10px;text-align: center"> <div style="font-size: 14px;margin:10px;text-align: center">

View File

@ -70,8 +70,6 @@
</div> </div>
<div class="cl"></div> <div class="cl"></div>
<%= render :partial => 'addjour', :locals => {:homework_attach => @homework, :sta => 0, :is_comprehensive_evaluation => @is_comprehensive_evaluation} %> <%= render :partial => 'addjour', :locals => {:homework_attach => @homework, :sta => 0, :is_comprehensive_evaluation => @is_comprehensive_evaluation} %>
<!-- <textarea id="ta_msg_content" name="content" placeholder="最多250个字"></textarea>
<a href="#" class="ping_sub">提交评论</a> -->
<div class="cl"></div> <div class="cl"></div>
</div><!---ping_con end---> </div><!---ping_con end--->

View File

@ -1851,3 +1851,4 @@ en:
label_teacher_comments: Teacher comments label_teacher_comments: Teacher comments
label_anonymous_comments: Anonymous comments label_anonymous_comments: Anonymous comments
label_anonymous: Anonymous label_anonymous: Anonymous
label_submit_comments: Submit_comments

View File

@ -2183,3 +2183,4 @@ zh:
label_teacher_comments: 教师评论 label_teacher_comments: 教师评论
label_anonymous_comments: 匿评 label_anonymous_comments: 匿评
label_anonymous: 匿名 label_anonymous: 匿名
label_submit_comments: 提交评论

View File

@ -83,7 +83,8 @@ a.wzan_visited{background:url(images/pic_zan.png) 0 0 no-repeat;}
.ping_star span a{ float:right; width:20px; height:20px; background:url(images/star.png) -2px 0 no-repeat; margin-right:3px;} .ping_star span a{ float:right; width:20px; height:20px; background:url(images/star.png) -2px 0 no-repeat; margin-right:3px;}
.ping_star span a:hover{background:url(images/star.png) -24px 0 no-repeat;} .ping_star span a:hover{background:url(images/star.png) -24px 0 no-repeat;}
.ping_con textarea{ width:455px; height:76px; border:1px solid #15bccf; margin-bottom:5px; color:#666; font-size:12px;} .ping_con textarea{ width:455px; height:76px; border:1px solid #15bccf; margin-bottom:5px; color:#666; font-size:12px;}
a.ping_sub{ float:right; height:22px; width:60px; background:#15bccf; color:#fff; text-align:center;} a.ping_sub{ float:right; height:22px; width:60px; margin-right:20px; background:#15bccf; color:#fff; text-align:center;}
a.ping_sub1{ float:right; height:22px; width:60px; background:#15bccf; color:#fff; text-align:center;}
a:hover.ping_sub{ background:#14a8b9;} a:hover.ping_sub{ background:#14a8b9;}
.recall{ border-top:1px solid #CCC; padding:5px 0;} .recall{ border-top:1px solid #CCC; padding:5px 0;}
.recall_head{ float:left;} .recall_head{ float:left;}