修改按钮样式

This commit is contained in:
z9hang 2014-11-03 18:14:57 +08:00
parent e3b0b8e9e1
commit 86653c7b66
1 changed files with 10 additions and 8 deletions

View File

@ -13,13 +13,19 @@
$('#' + id).val(content);
}
}
function submit1(button)
{
$('#jours_submit').parent().submit();
// button.submit();
alert("d");
}
</script>
<%= form_for('bid_message', :remote => true, :method => :post,
<%= form_for('bid_message', :id=>"bid_message_form",:remote => true, :method => :post,
:url => {:controller => 'bids',
:action => 'create',
:id => bid,
:sta => sta}) do |f|%>
:sta => sta}) do |f|%>
<div id = 'pre_show'>
<%= render :partial => 'pre_show', :locals => {:content => @content} %>
@ -38,12 +44,8 @@
<%= f.text_field :reference_user_id, :style=>"display:none"%>
<!-- modified by bai 525px -->
<table border="0" width="95%" align="center">
<tr>
<td align="right"> <%= submit_tag l(:button_leave_meassge), :name => nil , :class => "bid_btn", :onmouseout => "this.style.backgroundPosition = 'left top'", :onmouseover => "this.style.backgroundPosition = 'left -31px'"%>
<%= submit_tag l(:button_clear_meassge), :name => nil, :onclick => "clearMessage('bid_message_message');", :type => 'button', :class => "bid_btn", :onmouseout => "this.style.backgroundPosition = 'left top'", :onmouseover => "this.style.backgroundPosition = 'left -31px'" %> </td>
</tr>
</table>
<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 -->
<% else %>