Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16453 Rev 16455
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 );
-
 
153
            //     var json                = {};
-
 
154
            //     json.recordsTotal       = 0;
-
 
155
            //     json.recordsFiltered    = 0;
-
 
156
            //     json.data               = [];
Línea 153... Línea -...
153
                
-
 
154
                var json                = {};
-
 
155
                json.recordsTotal       = 0;
-
 
156
                json.recordsFiltered    = 0;
-
 
157
                json.data               = [];
-
 
158
                
157
                
159
                if(response.success) {
158
            //     if(response.success) {
160
                    json.recordsTotal       = response.data.total;
159
            //         json.recordsTotal       = response.data.total;
161
                    json.recordsFiltered    = response.data.total;
160
            //         json.recordsFiltered    = response.data.total;
Línea 162... Línea 161...
162
                    json.data               = response.data;
161
            //         json.data               = response.data;
163
 
162
 
164
                    console.log(json.data);
163
            //         console.log(json.data);
165
                } else {
164
            //     } else {
Línea 166... Línea 165...
166
                    $.fn.showError(response.data)
165
            //         $.fn.showError(response.data)
167
                }
166
            //     }
168
                
-
 
169
                return JSON.stringify( json );
167
                
170
            }
168
            //     return JSON.stringify( json );
-
 
169
            // }
-
 
170
            'dataSrc': function (data) {
171
        },
171
                console.log(data);
-
 
172
                //return (data["value"]);
-
 
173
            },
-
 
174
        },
172
        'drawCallback': function( settings ) {
175
        // 'drawCallback': function( settings ) {
173
                NProgress.done();
176
        //         NProgress.done();
174
        },
177
        // },
175
        'aoColumns': [ 
178
        'aoColumns': [ 
176
            { 'mDataProp': "first_name" },
179
            { 'mDataProp': "first_name" },