projects
/
guacamole.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow logout button to work where no Java app used
[guacamole.git]
/
src
/
main
/
webapp
/
scripts
/
interface.js
diff --git
a/src/main/webapp/scripts/interface.js
b/src/main/webapp/scripts/interface.js
index
45f6590
..
824219e
100644
(file)
--- a/
src/main/webapp/scripts/interface.js
+++ b/
src/main/webapp/scripts/interface.js
@@
-315,8
+315,12
@@
var GuacamoleUI = {
// Logout after warning user about session disconnect
if (confirm(GuacamoleUI.LOGOUT_PROMPT)) {
// Logout after warning user about session disconnect
if (confirm(GuacamoleUI.LOGOUT_PROMPT)) {
- window.location.href = "logout";
- GuacamoleUI.hideTouchMenu();
+ if(1 == window.SELF_CLOSE){
+ window.close();
+ }else{
+ window.location.href = "logout";
+ GuacamoleUI.hideTouchMenu();
+ }
}
};
}
};