Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16440 Rev 16441
Línea 143... Línea 143...
143
        'responsive': true,
143
        'responsive': true,
144
        'select' : false,
144
        'select' : false,
145
        'paging': true,
145
        'paging': true,
146
        'pagingType': 'simple_numbers',
146
        'pagingType': 'simple_numbers',
147
        'ajax': {
147
        'ajax': {
148
    			'url' : '$routeOverview',
148
            'url' : '$routeOverview',
149
    			'type' : 'get',
149
            'type' : 'get',
150
                'beforeSend': function (request) {
150
            'beforeSend': function (request) {
151
                  NProgress.start();
151
                NProgress.start();
152
                },
152
            },
153
                'dataFilter': function(response) {
153
            'dataFilter': function(response) {
154
                    var response = jQuery.parseJSON( response );
154
                var response = jQuery.parseJSON( response );
155
                    
155
                
156
                    var json                = {};
156
                var json                = {};
157
                    json.recordsTotal       = 0;
157
                json.recordsTotal       = 0;
158
                    json.recordsFiltered    = 0;
158
                json.recordsFiltered    = 0;
159
                    json.data               = [];
159
                json.data               = [];
160
                    
160
                
161
                    if(response.success) {
161
                if(response.success) {
162
                        json.recordsTotal       = response.data.total;
162
                    json.recordsTotal       = response.data.total;
163
                        json.recordsFiltered    = response.data.total;
163
                    json.recordsFiltered    = response.data.total;
164
                        json.data               = response.data;
164
                    json.data               = response.data;
Línea 165... Línea 165...
165
 
165
 
166
                        console.log(json.data);
166
                    console.log(json.data);
167
                    } else {
167
                } else {
168
                        $.fn.showError(response.data)
-
 
169
                    }
-
 
170
                    
-
 
171
                    return JSON.stringify( json );
168
                    $.fn.showError(response.data)
-
 
169
                }
-
 
170
                
-
 
171
                return JSON.stringify( json );
172
                }
172
            }
-
 
173
        },
-
 
174
        'drawCallback': function( settings ) {
-
 
175
                NProgress.done();
173
    		},
176
        }
174
        columns: [ 
177
        'aoColumns': [ 
175
            { data: "first_name" },
178
            { 'mDataProp': "first_name" },
176
            { data: "last_name" },
179
            { 'mDataProp': "last_name" },
177
            { data: "email" },
180
            { 'mDataProp': "email" },
178
            { data: "total_by_day" },
181
            { 'mDataProp': "total_by_day" },
179
            { data: "added_on" },
182
            { 'mDataProp': "added_on" },
Línea 180... Línea 183...
180
         ]
183
         ]