Conjunto 1ba6a7a en sapic
- Fecha y hora:
- 19/09/2018 08:34:19 (hace 6 años)
- Branches:
- master
- Children:
- 6c5772b
- Parents:
- c3d2880
- Ficheros:
-
- 1 añadido
- 2 editados
Leyenda
- No modificado
- Añadido
- Eliminado
-
organizaciones/templates/organizaciones.list.html
rcd20b73 r1ba6a7a 7 7 ruta = '{% url 'organizaciones:modal_org' request.user.pk %}'; 8 8 var user = "{{ request.user.pk }}" 9 id_organizacion = {{request.user.pk}}; 9 10 </script> 10 11 {% endblock extra_constantes %} … … 17 18 <script src="{% static 'organizaciones/org_listDataTable.js' %}" type="text/javascript"></script> 18 19 <script src="{% static 'start/modals.js' %}"></script> 19 <script type="text/javascript">20 id_organizacion = {{request.user.pk}};21 //id_organizacion = {{request.organizacion.pk}};22 </script>23 20 {% endblock extrajs %} 24 21 {% block contenido %} -
static/start/modals.js
rcd20b73 r1ba6a7a 33 33 }) 34 34 35 function modificar_org_modals(){36 ruta_org = ruta;35 function modificar_org_modals(){ 36 ruta_org = ruta; 37 37 38 $.ajax({ 39 url: ruta_org, 40 type: "GET", 41 data: { 42 }, 43 dataType: 'html', 44 success: function(data) { 45 $('#modal-body').html(data); 46 } 47 }); 48 } 49 50 function modal_org(id_organizacion){ 51 ruta_org = ruta.split("/")[1] 52 ruta_org = "/"+ruta_org + "/" + id_organizacion + "/" 38 53 $.ajax({ 39 url: ruta_org,40 type: "GET",41 data: {42 },43 dataType: 'html',44 success: function(data) {45 $('#modal-body').html(data);46 }47 });48 } 54 url: ruta_org, 55 async: false, 56 type: "GET", 57 data: { 58 }, 59 dataType: 'html', 60 success: function(data) { 61 $('#modal-body').html(data); 62 } 63 }); 49 64 50 function modal_org(id_organizacion){ 51 ruta_org = ruta.split("/")[1] 52 ruta_org = "/"+ruta_org + "/" + id_organizacion + "/" 53 $.ajax({ 54 url: ruta_org, 55 type: "GET", 56 data: { 57 }, 58 dataType: 'html', 59 success: function(data) { 60 $('#modal-body').html(data); 61 } 62 }); 63 64 } 65 $("#perfil").click(function(){ 66 modificar_org_modals(); 67 }) 65 } 66 $("#modal_org").click(function(){ 67 modificar_org_modals(); 68 })
Nota: Vea TracChangeset
para ayuda en el uso del visor de conjuntos de cambios.