Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 3624 Rev 3631
Línea 325... Línea 325...
325
        },
325
        },
326
        invalidHandler: function(form, validator) {}
326
        invalidHandler: function(form, validator) {}
327
    });
327
    });
Línea 328... Línea 328...
328
 
328
 
329
    $('body').on('click', 'button.btn-add', function(e) {
329
    $('body').on('click', 'button.btn-add', function(e) {
-
 
330
        $('#form-interview').attr('action', "$routeAdd")
330
        var url = $(this).data('url');
331
        
-
 
332
        e.preventDefault();
331
        e.preventDefault();
333
 
332
        NProgress.start();
334
        NProgress.start();
333
        $.ajax({
335
        $.ajax({
334
            'dataType': 'json',
336
            'dataType': 'json',
335
            'accept': 'application/json',
337
            'accept': 'application/json',
336
            'method': 'get',
338
            'method': 'get',
337
            'url': url,
339
            'url': $(this).data('url'),
338
        }).done(function(response) {
340
        }).done(function(response) {
339
            if (response['success']) {
341
            if (response['success']) {
340
                var data = response.data
342
                var data = response.data
341
                $("#interview #comment").val('');
343
                $("#interview #comment").val('');
342
                $('#interview #status').val('');
344
                $('#interview #status').val('');
343
                $("#interview #points").val('$points_0');
-
 
344
 
-
 
345
                $("#form-interview").attr('action', url)
345
                $("#interview #points").val('$points_0');
346
                $("#content").hide();
346
                $("#content").hide();
347
                $("#main").show()
347
                $("#main").show()
348
            } else {
348
            } else {
349
                $.fn.showError(response['data']);
349
                $.fn.showError(response['data']);