Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16409 Rev 16410
Línea 142... Línea 142...
142
                'beforeSend': function (request) {
142
                'beforeSend': function (request) {
143
                  NProgress.start();
143
                  NProgress.start();
144
                },
144
                },
145
                'dataFilter': function(response) {
145
                'dataFilter': function(response) {
146
                    var response = jQuery.parseJSON( response );
146
                    var response = jQuery.parseJSON( response );
147
                    
-
 
-
 
147
                    console.log(response);
148
                    var json                = {};
148
                    var json                = {};
149
                    json.recordsTotal       = 0;
149
                    json.recordsTotal       = 0;
150
                    json.recordsFiltered    = 0;
150
                    json.recordsFiltered    = 0;
151
                    json.data               = [];
151
                    json.data               = [];
Línea 152... Línea 152...
152
                    
152
                    
153
                    
153
                    
154
                    if(response.success) {
154
                    if(response.success) {
155
                        json.recordsTotal       = response.data.total;
155
                        json.recordsTotal       = response.data.total[0];
156
                        json.recordsFiltered    = response.data.total;
156
                        json.recordsFiltered    = response.data.total;
157
                        json.data               = response.data.total;
157
                        json.data               = response.data.total;
158
                    } else {
158
                    } else {
Línea 159... Línea 159...
159
                        $.fn.showError(response.data)
159
                        $.fn.showError(response.data)
160
                    }
160
                    }
161
                    
161
                    
162
                    return JSON.stringify( json );
162
                    return JSON.stringify( json );
163
                }
163
                }
164
    		},
164
    		},
165
            'aoColumns': [
165
            'aoColumns': [
166
                { 'mDataProp': 'added_on' },
166
                { 'mDataProp': 'first_name' },
167
                { 'mDataProp': 'last_name' },
167
                { 'mDataProp': 'last_name' },
168
                { 'mDataProp': 'email' },
168
                { 'mDataProp': 'email' },