From 8757560b667bb09c587b1ecc68f49ab2dd9ed4be Mon Sep 17 00:00:00 2001 From: Helmy Giacoman Date: Sun, 6 Feb 2011 15:33:33 -0600 Subject: [PATCH] cambios en form de indicadores --- encuesta/views.py | 1 + templates/fed/indicadores.html | 45 +++++++++++++++++----------------- 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/encuesta/views.py b/encuesta/views.py index a2f0704..5ec8701 100644 --- a/encuesta/views.py +++ b/encuesta/views.py @@ -133,6 +133,7 @@ def indicadores(request): bandera = 1 request.session['tipo'] = form.cleaned_data['tipo'] request.session['organizacion'] = form.cleaned_data['organizacion'] + orgs_aux = form.cleaned_data['organizacion'] #request.session['municipio'] = form.cleaned_data['municipio'] request.session['periodo'] = form.cleaned_data['periodo'] request.session['anio'] = form.cleaned_data['anio'] diff --git a/templates/fed/indicadores.html b/templates/fed/indicadores.html index 02deaeb..eb44cc9 100644 --- a/templates/fed/indicadores.html +++ b/templates/fed/indicadores.html @@ -9,28 +9,7 @@ $(document).ready(function(){ verificar(); $("#id_tipo").change(function() { - verificar(); - var str = ''; - var lista = $('#id_tipo').val(); - if(lista!=null){ - for(var i=0;i').val(item.id).html(item.nombre_corto)); - }); - } - }); - }else{ - verificar(); - } + verificar(); }); $('#select_organizacion').click(function(){ @@ -67,6 +46,28 @@ //$(this).attr('disabled', 'disabled'); //alert('tumadre'); //}); + }else{ + var str = ''; + var lista = $('#id_tipo').val(); + if(lista!=null){ + for(var i=0;i').val(item.id).html(item.nombre_corto)); + }); + } + }); + }else{ + verificar(); + } } }