Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 480 Rev 481
Línea 198... Línea 198...
198
                var json = {};
198
                var json = {};
199
                json.recordsTotal = 0;
199
                json.recordsTotal = 0;
200
                json.recordsFiltered = 0;
200
                json.recordsFiltered = 0;
201
                json.data = [];
201
                json.data = [];
202
                if (response.success) {
202
                if (response.success) {
-
 
203
 
-
 
204
                    if( $('#only_pending').is(':checked') ) {
-
 
205
 
-
 
206
                        let items = response.data.items.filter((item)=> item.status=='Pendiente');
-
 
207
 
-
 
208
                        json.recordsTotal = items.length;
-
 
209
                    json.recordsFiltered = items.length;
-
 
210
                    json.data = items;
-
 
211
 
-
 
212
}else{
203
                    json.recordsTotal = response.data.total;
213
                    json.recordsTotal = response.data.total;
204
                    json.recordsFiltered = response.data.total;
214
                    json.recordsFiltered = response.data.total;
205
                    json.data = response.data.items;
215
                    json.data = response.data.items;
-
 
216
}
206
                } else {
217
                } else {
207
                    $.fn.showError(response.data)
218
                    $.fn.showError(response.data)
208
                }
219
                }
209
                return JSON.stringify(json);
220
                return JSON.stringify(json);
210
            }
221
            }
Línea 521... Línea 532...
521
     */
532
     */
522
    $('#form-review #question-value').inputNumberFormat({
533
    $('#form-review #question-value').inputNumberFormat({
523
        'decimal': 2
534
        'decimal': 2
524
    });
535
    });
Línea -... Línea 536...
-
 
536
 
-
 
537
    $('input[type=checkbox]').change(function () {
525
 
538
     tableForm.fnDraw();
526
});
-
 
527
 
-
 
Línea 528... Línea -...
528
$(document).ready(function () {
-
 
529
 
-
 
530
  $('input[type=checkbox]').change(function () {
-
 
531
    if( $('#only_pending').is(':checked') ) {
-
 
532
    alert('Seleccionado');
-
 
533
}
-
 
534
});
539
    });