Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 2879 Rev 2887
Línea 286... Línea 286...
286
                var data = response.data
286
                var data = response.data
287
                $("#interview #comment").val(data['interview']['comment']);
287
                $("#interview #comment").val(data['interview']['comment']);
288
                $('#interview #status').val(data['interview']['status']);            
288
                $('#interview #status').val(data['interview']['status']);            
289
                $('#interview #type').val(data['interview']['type']);
289
                $('#interview #type').val(data['interview']['type']);
290
                $("#interview #points").val(data['interview']['points']);
290
                $("#interview #points").val(data['interview']['points']);
291
                $('#interview #content').val(data['interview']['content'])
-
 
292
                $("#competencies-job").html($("#competenciesTemplate").render(data))
291
                $("#competencies-job").html($("#competenciesTemplate").render(data))
-
 
292
                data.interview.content.forEach(obj => {
-
 
293
                 console.log(obj)
-
 
294
                })
293
                $("#form-interview").attr('action', url)
295
                $("#form-interview").attr('action', url)
294
                $("#interview").show()
296
                $("#interview").show()
295
            } else {
297
            } else {
296
                $.fn.showError(response['data']);
298
                $.fn.showError(response['data']);
297
            }
299
            }
Línea 301... Línea 303...
301
            NProgress.done();
303
            NProgress.done();
302
        });
304
        });
303
    });
305
    });
Línea 304... Línea 306...
304
 
306
 
305
    $('button.btn-delete').confirmation({
307
    $('button.btn-delete').confirmation({
306
                rootSelector: 'button.btn-delete',
308
        rootSelector: 'button.btn-delete',
307
                title: 'LABEL_ARE_YOU_SURE',
309
        title: 'LABEL_ARE_YOU_SURE',
308
                singleton: true,
310
        singleton: true,
309
                btnOkLabel: 'LABEL_YES',
311
        btnOkLabel: 'LABEL_YES',
310
                btnCancelLabel: 'LABEL_NO',
312
        btnCancelLabel: 'LABEL_NO',
311
                onConfirm: function (value) {
313
        onConfirm: function (value) {
312
                    action = $(this).data('href');
314
            action = $(this).data('href');
313
                    NProgress.start();
315
            NProgress.start();
314
                    $.ajax({
316
            $.ajax({
315
                        'dataType': 'json',
317
                'dataType': 'json',
316
                        'accept': 'application/json',
318
                'accept': 'application/json',
317
                        'method': 'post',
319
                'method': 'post',
318
                        'url': $(this).data('url'),
320
                'url': $(this).data('url'),
319
                    }).done(function (response) {
321
            }).done(function (response) {
320
                        if (response['success']) {
322
                if (response['success']) {
321
                            $.fn.showSuccess(response['data']);
323
                    $.fn.showSuccess(response['data']);
322
                            $('#vacancy_uuid').change();
324
                    $('#vacancy_uuid').change();
323
                        } else {
325
                } else {
324
                            $.fn.showError(response['data']);
326
                    $.fn.showError(response['data']);
325
                        }
327
                }
326
                    }).fail(function (jqXHR, textStatus, errorThrown) {
328
            }).fail(function (jqXHR, textStatus, errorThrown) {
327
                        $.fn.showError(textStatus);
329
                $.fn.showError(textStatus);
328
                    }).always(function () {
330
            }).always(function () {
329
                        NProgress.done();
-
 
330
                    });
-
 
331
                },
331
                NProgress.done();
-
 
332
            });
-
 
333
        },
Línea 332... Línea 334...
332
            });
334
    });
333
    
335
    
334
    $('body').on('click', 'button.btn-cancel', function(e) {
336
    $('body').on('click', 'button.btn-cancel', function(e) {
335
        e.preventDefault();
337
        e.preventDefault();