Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16822 Rev 16840
Línea 279... Línea 279...
279
    });
279
    });
Línea 280... Línea 280...
280
 
280
 
281
    $('body').on('click', 'button.btn-add', function(e) {
281
    $('body').on('click', 'button.btn-add', function(e) {
Línea 282... Línea -...
282
        e.preventDefault();
-
 
-
 
282
        e.preventDefault();
283
 
283
 
284
        $('span[id="form-title"]').html('LABEL_ADD');
284
        
285
        $('#form').attr('action', '$routeAdd');    
285
        $('#form').attr('action', '$routeAdd');    
286
        $('#form #name').val('');
286
        $('#form #name').val('');
287
        $('#form #type').val('');
287
        $('#form #type').val('');
Línea 327... Línea 327...
327
                'method'    : 'get',
327
                'method'    : 'get',
328
                'url'       :  action,
328
                'url'       :  action,
329
            }).done(function(response) {
329
            }).done(function(response) {
330
                if(response['success']) {
330
                if(response['success']) {
Línea 331... Línea -...
331
 
-
 
-
 
331
 
332
                    $('span[id="form-title"]').html('LABEL_EDIT');
332
                    
333
                    $('#form').attr('action', action);
333
                    $('#form').attr('action', action);
334
                    $('#form #name').val(response['data']['name']);
334
                    $('#form #name').val(response['data']['name']);
335
                    $('#form #type').val(response['data']['type']);
335
                    $('#form #type').val(response['data']['type']);