更新组织栏目优先级,如果输入不合法,则不作改变

This commit is contained in:
ouyangxuhua 2016-03-10 09:06:07 +08:00
parent a51ca428be
commit 16b0bf9c80
2 changed files with 5 additions and 1 deletions

View File

@ -1,2 +1,2 @@
$("#org_subfield_list").html("<%= escape_javascript(render :partial => 'organizations/subfield_list',:locals => {:subfields => @organization.org_subfields.order("priority")}) %>"); $("#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}) %>") $("#sub_field_left_lists").html("<%= escape_javascript(render :partial => 'organizations/org_left_subfield_list', :locals => {:organization => @organization}) %>");

View File

@ -135,6 +135,10 @@
}); });
} }
} }
else
{
$(edit_id).find("input").val($(show_id).html().trim());
}
$(show_id).show(); $(show_id).show();
$(edit_id).hide(); $(edit_id).hide();
} }