Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16458 Rev 16459
Línea 146... Línea 146...
146
            'url' : '$routeOverview',
146
            'url' : '$routeOverview',
147
            'type' : 'get',
147
            'type' : 'get',
148
            'beforeSend': function (request) {
148
            'beforeSend': function (request) {
149
                NProgress.start();
149
                NProgress.start();
150
            },
150
            },
151
            'dataFilter': function(response) {
151
            // 'dataFilter': function(response) {
152
                var response = jQuery.parseJSON( response );
152
            //     var response = jQuery.parseJSON( response );
Línea 153... Línea 153...
153
                
153
                
154
                var json                = {};
154
            //     var json                = {};
155
                json.recordsTotal       = 0;
155
            //     json.recordsTotal       = 0;
156
                json.recordsFiltered    = 0;
156
            //     json.recordsFiltered    = 0;
Línea 157... Línea 157...
157
                json.data               = [];
157
            //     json.data               = [];
158
                
158
                
159
                if(response.success) {
159
            //     if(response.success) {
160
                    json.recordsTotal       = response.data.total;
160
            //         json.recordsTotal       = response.data.total;
Línea 161... Línea 161...
161
                    json.recordsFiltered    = response.data.total;
161
            //         json.recordsFiltered    = response.data.total;
162
                    json.data               = response.data;
162
            //         json.data               = response.data;
163
 
163
 
164
                    console.log(json.data);
164
            //         console.log(json.data);
Línea 165... Línea 165...
165
                } else {
165
            //     } else {
166
                    $.fn.showError(response.data)
166
            //         $.fn.showError(response.data)
167
                }
167
            //     }
168
                
168
                
169
                return JSON.stringify( json );
169
            //     return JSON.stringify( json );
170
            }
170
            // }
171
        },
171
        },