From 16b0bf9c80bb4ab191a39383abad9ce0147cbe73 Mon Sep 17 00:00:00 2001 From: ouyangxuhua Date: Thu, 10 Mar 2016 09:06:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=BB=84=E7=BB=87=E6=A0=8F?= =?UTF-8?q?=E7=9B=AE=E4=BC=98=E5=85=88=E7=BA=A7=EF=BC=8C=E5=A6=82=E6=9E=9C?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E4=B8=8D=E5=90=88=E6=B3=95=EF=BC=8C=E5=88=99?= =?UTF-8?q?=E4=B8=8D=E4=BD=9C=E6=94=B9=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/org_subfields/update_priority.js.erb | 2 +- app/views/organizations/_subfield_list.html.erb | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/org_subfields/update_priority.js.erb b/app/views/org_subfields/update_priority.js.erb index 4f269da8f..475649aac 100644 --- a/app/views/org_subfields/update_priority.js.erb +++ b/app/views/org_subfields/update_priority.js.erb @@ -1,2 +1,2 @@ $("#org_subfield_list").html("<%= escape_javascript(render :partial => 'organizations/subfield_list',:locals => {:subfields => @organization.org_subfields.order("priority")}) %>"); -$("#sub_field_left_lists").html("<%= escape_javascript(render :partial => 'organizations/org_left_subfield_list', :locals => {:organization => @organization}) %>") \ No newline at end of file +$("#sub_field_left_lists").html("<%= escape_javascript(render :partial => 'organizations/org_left_subfield_list', :locals => {:organization => @organization}) %>"); \ No newline at end of file diff --git a/app/views/organizations/_subfield_list.html.erb b/app/views/organizations/_subfield_list.html.erb index b90ba7565..0d490df77 100644 --- a/app/views/organizations/_subfield_list.html.erb +++ b/app/views/organizations/_subfield_list.html.erb @@ -135,6 +135,10 @@ }); } } + else + { + $(edit_id).find("input").val($(show_id).html().trim()); + } $(show_id).show(); $(edit_id).hide(); }