Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 14910 Rev 14911
Línea 418... Línea 418...
418
 
418
 
419
 
419
 
420
    $('body').on('click', 'button.btn-refresh', function (e) {
420
    $('body').on('click', 'button.btn-refresh', function (e) {
421
        e.preventDefault();
-
 
422
        gridTable.api().ajax.reload(null, false);
421
        e.preventDefault();
Línea 423... Línea 422...
423
        console.log(JSON.stringify($currentUser))
422
        gridTable.api().ajax.reload(null, false);
424
    });
423
    });
Línea 439... Línea 438...
439
                heigth: 100
438
                heigth: 100
440
    });
439
    });
441
});
440
});
442
JS;
441
JS;
443
$this->inlineScript()->captureEnd();
442
$this->inlineScript()->captureEnd();
-
 
443
 
-
 
444
$jsonUser = json_encode($currentUser);
-
 
445
 
-
 
446
$js = <<<JS
-
 
447
	const backendVariables= {
-
 
448
        user: $jsonUser
-
 
449
	}	
-
 
450
 
-
 
451
    console.log(backendVariables)
-
 
452
JS;
-
 
453
 
-
 
454
$this->inlineScript()->appendScript($js);
444
?>
455
?>
Línea 445... Línea 456...
445
 
456
 
446
 
457