Revert "jquery 点击省份出学校"

revert

This reverts commit 891fa65c16.
exceptionHandle
yanxd 11 years ago
parent 891fa65c16
commit 12c19e2bfe

@ -5,8 +5,6 @@
function(){
$("#province_lean").attr("href", "#WOpenWindow")
$("#province_lean").leanModal({top: 100, closeButton: ".modal_close"});
$("#province option").attr("disabled", true);
$("#province option").click(function(){get_options(this.value);});
}
);
</script>
@ -21,11 +19,11 @@
url :'/school/get_options/'+encodeURIComponent(value),
data :'text',
success: function(data){
$("#schoollist").html(data);
},
complete: function() {
$("#province option").attr("disabled", true);
}
}
}
@ -119,7 +117,7 @@
<input id="occupation_name" type="text" value="<%=User.current.user_extensions.school.name%>" readonly />
<% else %>
<%= l(:field_occupation) %>&nbsp;<span class="required">*</span><%= select_tag "province", options_from_collection_for_select(School.find_by_sql("select distinct province from schools"), :province, :province), onclick: '$("#province option").attr("disabled", false)' %>
<%= l(:field_occupation) %>&nbsp;<span class="required">*</span><%= select_tag "province", options_from_collection_for_select(School.find_by_sql("select distinct province from schools"), :province, :province), :onchange => "get_options(this.value)" %>
<input id="occupation" name="occupation" type="hidden" />
<input id="occupation_name" type="text" readonly />

Loading…
Cancel
Save