- Timestamp:
- Jul 29, 2015, 11:34:41 AM (9 years ago)
- Branches:
- master
- Children:
- 44aae37
- Parents:
- 476f140
- 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 */ 1 8 $(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 10 10 if ($('.js-captcha-refresh').length) { 11 /** Actualiza la imagen captcha del formulario */ 11 12 $('.js-captcha-refresh').click(function(){ 12 13 $form = $(this).parents('form'); … … 22 23 } 23 24 24 /**25 * @brief Instrucción que alinea los elementos radio options26 *27 * @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)28 * @copyright GNU/GPLv229 * @date 01-06-201530 */31 25 if ($(".radio").length) { 26 /** Instrucción que alinea los elementos radio options */ 32 27 $('form div ul').contents().unwrap(); 33 28 $('form div li').contents().unwrap(); … … 37 32 } 38 33 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 */ 46 35 if (!$('.tip-top').length && !$('.tip-bottom').length && !$('.tip-left').length && !$('.tip-right').length) { 47 36 $('[data-toggle="tooltip"]').tooltip({}); … … 63 52 } 64 53 65 66 67 /**68 * @brief Inicializa los elementos del dataTable69 *70 * @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)71 * @copyright GNU/GPLv272 * @date 02-06-201573 */74 54 if ($('.dataTable').length) { 55 /** Inicializa los elementos del dataTable */ 75 56 $(".dataTable").dataTable({ 76 57 "language": { … … 85 66 } 86 67 87 88 /**89 * @brief Instrucción que asigna el estilo select2 a los campos del formulario del tipo select90 *91 * @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)92 * @copyright GNU/GPLv293 * @date 01-06-201594 */95 68 if ($(".select2").length) { 69 /** Instrucción que asigna el estilo select2 a los campos del formulario del tipo select */ 96 70 $(".select2").select2({}); 97 71 } 98 72 99 /**100 * @brief Instrucción que crea la cadena productiva en forma de árbol101 *102 * @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)103 * @copyright GNU/GPLv2104 * @date 12-06-2015105 */106 73 if ($("#tree").length) { 74 /** Instrucción que crea la cadena productiva en forma de árbol */ 107 75 $(function() { 108 76 var $checkableTree = $("#tree").treeview({
Note: See TracChangeset
for help on using the changeset viewer.