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 235... Línea 235...
235
 
235
 
236
 
236
 
Línea 237... Línea -...
237
    $('body').on('click', 'button.btn-add', function(e) {
-
 
-
 
237
    $('body').on('click', 'button.btn-add', function(e) {
238
        e.preventDefault();
238
        e.preventDefault();
239
 
239
 
240
        $('span[id="form-title"]').html('LABEL_ADD');
240
        
Línea 241... Línea 241...
241
        $('#form').attr('action', '$routeAdd');    
241
        $('#form').attr('action', '$routeAdd');    
Línea 294... Línea 294...
294
                'method'    : 'get',
294
                'method'    : 'get',
295
                'url'       :  action,
295
                'url'       :  action,
296
            }).done(function(response) {
296
            }).done(function(response) {
297
                if(response['success']) {
297
                if(response['success']) {
Línea 298... Línea -...
298
 
-
 
-
 
298
 
299
                    $('span[id="form-title"]').html('LABEL_EDIT');
299
                    
300
                    $('#form').attr('action', action);
300
                    $('#form').attr('action', action);
301
                    $('#form #name').val(response['data']['name']);
301
                    $('#form #name').val(response['data']['name']);
Línea 302... Línea 302...
302
                    $('#form #correct').val(response['data']['correct']);
302
                    $('#form #correct').val(response['data']['correct']);