Conjunto 1ba6a7a en sapic


Ignorar:
Fecha y hora:
19/09/2018 08:34:19 (hace 6 años)
Autor:
ltroconis <ltroconis@…>
Branches:
master
Children:
6c5772b
Parents:
c3d2880
Mensaje:

initial data de comité ejecutivo

Ficheros:
1 añadido
2 editados

Leyenda

No modificado
Añadido
Eliminado
  • organizaciones/templates/organizaciones.list.html

    rcd20b73 r1ba6a7a  
    77        ruta = '{% url 'organizaciones:modal_org' request.user.pk %}';
    88        var user = "{{ request.user.pk }}"
     9        id_organizacion =  {{request.user.pk}};
    910    </script>
    1011{% endblock extra_constantes %}
     
    1718    <script src="{% static 'organizaciones/org_listDataTable.js' %}" type="text/javascript"></script>
    1819    <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>
    2320{% endblock extrajs %}
    2421{% block contenido %}
  • static/start/modals.js

    rcd20b73 r1ba6a7a  
    3333  })
    3434
    35 function modificar_org_modals(){
    36   ruta_org = ruta;
     35  function modificar_org_modals(){
     36    ruta_org = ruta;
    3737
     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 + "/"
    3853    $.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    });
    4964
    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.