0
0

Moved logout function in dedicated file

This commit is contained in:
Bryan 2019-06-02 09:31:04 +02:00
parent 04df25c00d
commit 7dd72e6b92
No known key found for this signature in database
GPG Key ID: 6CB4C49B61AD50EF
3 changed files with 4 additions and 3 deletions

3
lib/js/logout.js Normal file
View File

@ -0,0 +1,3 @@
function logout ( ) {
window.location.href = script_name+"/logout";
}

View File

@ -39,6 +39,3 @@ function urlinsert() {
data.append('url', url);
xhr.send( data );
}
function logout ( ) {
window.location.href = script_name+"/logout";
}

View File

@ -33,6 +33,7 @@
<button onclick="urlinsert()">Insert new URL</button><br>
<div id="responsetext"></div>
<script src="<?=$GLOBALS['config']['installation_path']?>/lib/js/manage.js"></script>
<script src="<?=$GLOBALS['config']['installation_path']?>/lib/js/logout.js"></script>
<script>var script_name = "<?=$GLOBALS['config']['installation_path']?>";</script>
</body>
</html>