Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 17061 | Rev 17063 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 17061 Rev 17062
Línea 97... Línea 97...
97
 
97
 
98
$this->inlineScript()->captureStart();
98
$this->inlineScript()->captureStart();
99
echo <<<JS
99
echo <<<JS
Línea -... Línea 100...
-
 
100
    jQuery( document ).ready(function( $ ) {
100
    jQuery( document ).ready(function( $ ) {
101
 
101
 
102
        // Configuración de validación de formularios
102
        $.validator.setDefaults({
103
        $.validator.setDefaults({
103
            debug: true,
104
            debug: true,
104
            highlight: function(element) {
105
            highlight: function(element) {
Línea 118... Línea 119...
118
                    error.insertAfter(element.parent());
119
                    error.insertAfter(element.parent());
119
                }
120
                }
120
            }
121
            }
121
        });
122
        });
Línea 122... Línea -...
122
    
-
 
123
    
-
 
124
 
-
 
-
 
123
    
125
 
124
        // Variables de permisos
126
        var allowEdit   = $allowEdit;
125
        var allowEdit   = $allowEdit;
127
        var allowDelete = $allowDelete;
126
        var allowDelete = $allowDelete;
Línea 128... Línea -...
128
        var allowUsers  = $allowUsers;
-
 
-
 
127
        var allowUsers  = $allowUsers;
129
 
128
 
130
        
129
        // Configuración de la tabla principal
131
        var gridTable = $('#gridTable').dataTable( {
130
        var gridTable = $('#gridTable').dataTable({
132
            'processing': true,
131
            'processing': true,
133
            'serverSide': true,
132
            'serverSide': true,
134
            'searching': true,
133
            'searching': true,
135
            'order': [[ 0, 'asc' ]],
134
            'order': [[ 0, 'asc' ]],
136
            'ordering':  true,
135
            'ordering':  true,
137
            'ordenable' : true,
136
            'ordenable' : true,
138
            'responsive': true,
137
            'responsive': true,
139
            'select' : false,
138
            'select' : false,
140
        	'paging': true,
-
 
141
            'pagingType': 'simple_numbers',
139
        	'paging': true,
142
 
140
            'pagingType': 'simple_numbers',
143
    		'ajax': {
141
    		'ajax': {
144
    			'url' : '$routeDatatable',
142
    			'url' : '$routeDatatable',
145
    			'type' : 'get',
143
    			'type' : 'get',
Línea 190... Línea 188...
190
                    'sSortAscending':  ': LABEL_DATATABLE_SSORTASCENDING',
188
                    'sSortAscending':  ': LABEL_DATATABLE_SSORTASCENDING',
191
                    'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
189
                    'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
192
                },
190
                },
193
            },
191
            },
194
            'drawCallback': function( settings ) {
192
            'drawCallback': function( settings ) {
195
                NProgress.done();
193
                NProgress.done();   
196
                
-
 
197
            },
194
            },
198
            'aoColumns': [
195
            'aoColumns': [
199
                { 'mDataProp': 'name' },
196
                { 'mDataProp': 'name' },
200
                { 'mDataProp': 'details' },
197
                { 'mDataProp': 'details' },
201
                { 'mDataProp': 'images' },
198
                { 'mDataProp': 'images' },
Línea 250... Línea 247...
250
                        
247
                        
251
 
248
 
252
                        return s;
249
                        return s;
253
                    }
-
 
254
                },
-
 
255
 
250
                    }
256
 
251
                },
257
                {
252
                {
258
                    'targets': -1,
253
                    'targets': -1,
259
                    'orderable': false,
254
                    'orderable': false,
Línea 268... Línea 263...
268
                        }
263
                        }
Línea 269... Línea 264...
269
 
264
 
270
                        return s;
265
                        return s;
271
                    }
266
                    }
272
                }
267
                }
273
              ],
268
            ],
Línea 274... Línea 269...
274
        });
269
        });
275
 
270