diff -r e78a5483553e -r 3cb38edbe05f app/templates/projrev/proposal/submit.html
--- a/app/templates/projrev/proposal/submit.html Mon Aug 10 17:18:07 2009 +0530
+++ b/app/templates/projrev/proposal/submit.html Mon Aug 10 19:38:53 2009 +0530
@@ -8,8 +8,23 @@
$('#id_state').chainSelect('#id_district','/proposal/submit/get_dfors');
});
$(document).ready(function() {
- $.get('/proposal/submit/get_dfors', function() {
- $('#id_district').html('');
+ dt_val = $('#id_district').val();
+ $.getJSON('/proposal/submit/get_new_dfors',
+ { '_value': $('#id_state').val() },
+ function(data) {
+ var option_html = "";
+ for (i in data) {
+ if (data[i]) {
+ for (key in data[i]) {
+ if (key == dt_val) {
+ option_html += '';
+ } else {
+ option_html += '';
+ }
+ }
+ }
+ }
+ $('#id_district').html(option_html);
});
});