Moved logout function in dedicated file

This commit is contained in:
Bryan committed 2019-06-02 09:31:04 +02:00
1 parent 04df25c00d
commit 7dd72e6b92
3 files changed
+4 -3

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
function logout ( ) {
window.location.href = script_name+"/logout";
}
-3
View File
@@ -39,6 +39,3 @@ function urlinsert() {
data.append('url', url);
xhr.send( data );
}
function logout ( ) {
window.location.href = script_name+"/logout";
}
+1
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>