修改按钮样式
This commit is contained in:
parent
e3b0b8e9e1
commit
86653c7b66
|
@ -13,13 +13,19 @@
|
||||||
$('#' + id).val(content);
|
$('#' + id).val(content);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
function submit1(button)
|
||||||
|
{
|
||||||
|
$('#jours_submit').parent().submit();
|
||||||
|
// button.submit();
|
||||||
|
alert("d");
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<%= form_for('bid_message', :remote => true, :method => :post,
|
<%= form_for('bid_message', :id=>"bid_message_form",:remote => true, :method => :post,
|
||||||
:url => {:controller => 'bids',
|
:url => {:controller => 'bids',
|
||||||
:action => 'create',
|
:action => 'create',
|
||||||
:id => bid,
|
:id => bid,
|
||||||
:sta => sta}) do |f|%>
|
:sta => sta}) do |f|%>
|
||||||
|
|
||||||
<div id = 'pre_show'>
|
<div id = 'pre_show'>
|
||||||
<%= render :partial => 'pre_show', :locals => {:content => @content} %>
|
<%= render :partial => 'pre_show', :locals => {:content => @content} %>
|
||||||
|
@ -38,12 +44,8 @@
|
||||||
<%= f.text_field :reference_user_id, :style=>"display:none"%>
|
<%= f.text_field :reference_user_id, :style=>"display:none"%>
|
||||||
|
|
||||||
<!-- modified by bai 525px -->
|
<!-- modified by bai 525px -->
|
||||||
<table border="0" width="95%" align="center">
|
<a href="#" class="ping_sub" id="jours_submit" onclick="submit1();">留言</a>
|
||||||
<tr>
|
<a href="#" class="ping_sub" onclick = "clearMessage('bid_message_message');"><%= l(:button_clear_meassge) %></a>
|
||||||
<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>
|
|
||||||
<!-- end -->
|
<!-- end -->
|
||||||
|
|
||||||
<% else %>
|
<% else %>
|
||||||
|
|
Loading…
Reference in New Issue