From 86653c7b66a3dfe8984e8c594423aa10e173d53a Mon Sep 17 00:00:00 2001 From: z9hang Date: Mon, 3 Nov 2014 18:14:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8C=89=E9=92=AE=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/bids/_new.html.erb | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/app/views/bids/_new.html.erb b/app/views/bids/_new.html.erb index 80fa1781f..86e8b457d 100644 --- a/app/views/bids/_new.html.erb +++ b/app/views/bids/_new.html.erb @@ -13,13 +13,19 @@ $('#' + id).val(content); } } + function submit1(button) + { + $('#jours_submit').parent().submit(); +// button.submit(); + alert("d"); + } -<%= 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|%>
<%= render :partial => 'pre_show', :locals => {:content => @content} %> @@ -38,12 +44,8 @@ <%= f.text_field :reference_user_id, :style=>"display:none"%> - - - - -
<%= 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'" %>
+ 留言 + <%= l(:button_clear_meassge) %> <% else %>