Moved logout function in dedicated file
This commit is contained in:
parent
04df25c00d
commit
7dd72e6b92
3
lib/js/logout.js
Normal file
3
lib/js/logout.js
Normal file
@ -0,0 +1,3 @@
|
||||
function logout ( ) {
|
||||
window.location.href = script_name+"/logout";
|
||||
}
|
@ -39,6 +39,3 @@ function urlinsert() {
|
||||
data.append('url', url);
|
||||
xhr.send( data );
|
||||
}
|
||||
function logout ( ) {
|
||||
window.location.href = script_name+"/logout";
|
||||
}
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user