Changeset 25db912 in sicp for static


Ignore:
Timestamp:
Jul 29, 2015, 11:34:41 AM (9 years ago)
Author:
Ing. Roldan D. Vargas G <rvargas@…>
Branches:
master
Children:
44aae37
Parents:
476f140
Message:

se agregan instrucciones javascript que permiten generar y mostrar los gráficos sobre la evaluación de escenarios

File:
1 edited

Legend:

Unmodified
Added
Removed
  • static/js/layout.js

    r3a5bec1 r25db912  
     1/**
     2* Instrucciones a ejecutar al momento de cargar la aplicación
     3*
     4* @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
     5* @copyright GNU/GPLv2
     6* @date 14-05-2015
     7*/
    18$(document).ready(function() {
    2     /**
    3      * @brief Función que actualiza la imagen captcha del formulario
    4      *
    5      * @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
    6      * @copyright GNU/GPLv2
    7      * @date 14-05-2015
    8      * @return Retorna falso en caso de no obtener respuesta del servidor, en caso contrario, muestra la nueva imagen captcha
    9      */
     9   
    1010    if ($('.js-captcha-refresh').length) {
     11        /** Actualiza la imagen captcha del formulario */
    1112        $('.js-captcha-refresh').click(function(){
    1213            $form = $(this).parents('form');
     
    2223    }
    2324
    24     /**
    25      * @brief Instrucción que alinea los elementos radio options
    26      *
    27      * @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
    28      * @copyright GNU/GPLv2
    29      * @date 01-06-2015
    30      */
    3125    if ($(".radio").length) {
     26        /** Instrucción que alinea los elementos radio options */
    3227        $('form div ul').contents().unwrap();
    3328        $('form div li').contents().unwrap();
     
    3732    }
    3833
    39     /**
    40      * @brief Agrega el estilo para los tooltiptext de los elementos del formulario
    41      *
    42      * @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
    43      * @copyright GNU/GPLv2
    44      * @date 14-05-2015
    45      */
     34    /** Agrega el estilo para los tooltiptext de los elementos del formulario */
    4635    if (!$('.tip-top').length && !$('.tip-bottom').length && !$('.tip-left').length && !$('.tip-right').length) {
    4736        $('[data-toggle="tooltip"]').tooltip({});
     
    6352    }
    6453
    65 
    66 
    67     /**
    68      * @brief Inicializa los elementos del dataTable
    69      *
    70      * @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
    71      * @copyright GNU/GPLv2
    72      * @date 02-06-2015
    73      */
    7454    if ($('.dataTable').length) {
     55        /** Inicializa los elementos del dataTable */
    7556        $(".dataTable").dataTable({
    7657            "language": {
     
    8566    }
    8667
    87 
    88     /**
    89      * @brief Instrucción que asigna el estilo select2 a los campos del formulario del tipo select
    90      *
    91      * @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
    92      * @copyright GNU/GPLv2
    93      * @date 01-06-2015
    94      */
    9568    if ($(".select2").length) {
     69        /** Instrucción que asigna el estilo select2 a los campos del formulario del tipo select */
    9670        $(".select2").select2({});
    9771    }
    9872
    99     /**
    100      * @brief Instrucción que crea la cadena productiva en forma de árbol
    101      *
    102      * @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
    103      * @copyright GNU/GPLv2
    104      * @date 12-06-2015
    105      */
    10673    if ($("#tree").length) {
     74        /** Instrucción que crea la cadena productiva en forma de árbol */
    10775        $(function() {
    10876            var $checkableTree = $("#tree").treeview({
Note: See TracChangeset for help on using the changeset viewer.