mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
#268: Add "Manage" button, fix root-ui.js variables.
This commit is contained in:
@@ -69,6 +69,7 @@
|
||||
<div id="connection-list-ui" style="display: none">
|
||||
|
||||
<div id="logout-panel">
|
||||
<button id="manage">Manage</button>
|
||||
<button id="logout">Logout</button>
|
||||
</div>
|
||||
|
||||
@@ -139,6 +140,7 @@
|
||||
<script type="text/javascript" src="scripts/service.js"></script>
|
||||
<script type="text/javascript" src="scripts/session.js"></script>
|
||||
<script type="text/javascript" src="scripts/history.js"></script>
|
||||
<script type="text/javascript" src="scripts/guac-ui.js"></script>
|
||||
<script type="text/javascript" src="scripts/root-ui.js"></script>
|
||||
|
||||
</body>
|
||||
|
@@ -42,7 +42,8 @@ var GuacamoleRootUI = {
|
||||
|
||||
"buttons": {
|
||||
"login" : document.getElementById("login"),
|
||||
"logout" : document.getElementById("logout")
|
||||
"logout" : document.getElementById("logout"),
|
||||
"manage" : document.getElementById("manage")
|
||||
},
|
||||
|
||||
"settings": {
|
||||
@@ -154,7 +155,7 @@ GuacamoleRootUI.reset = function() {
|
||||
GuacamoleRootUI.connections[connections[i].id] = connections[i];
|
||||
|
||||
// Get connection element
|
||||
var connection = new GuacamoleRootUI.Connection(connections[i]);
|
||||
var connection = new GuacUI.Connection(connections[i]);
|
||||
|
||||
// If screenshot present, add to recent connections
|
||||
if (connection.hasThumbnail())
|
||||
@@ -162,7 +163,7 @@ GuacamoleRootUI.reset = function() {
|
||||
|
||||
// Add connection to connection list
|
||||
GuacamoleRootUI.sections.all_connections.appendChild(
|
||||
new GuacamoleRootUI.Connection(connections[i]).getElement());
|
||||
new GuacUI.Connection(connections[i]).getElement());
|
||||
|
||||
}
|
||||
|
||||
@@ -184,7 +185,7 @@ GuacamoleHistory.onchange = function(id, old_entry, new_entry) {
|
||||
if (!connection) {
|
||||
|
||||
// Create new connection
|
||||
connection = new GuacamoleRootUI.Connection(
|
||||
connection = new GuacUI.Connection(
|
||||
GuacamoleRootUI.connections[id]
|
||||
);
|
||||
|
||||
@@ -316,6 +317,14 @@ GuacamoleRootUI.buttons.logout.onclick = function() {
|
||||
window.location.href = "logout";
|
||||
};
|
||||
|
||||
/*
|
||||
* Set handler for admin
|
||||
*/
|
||||
|
||||
GuacamoleRootUI.buttons.manage.onclick = function() {
|
||||
window.location.href = "admin.xhtml";
|
||||
};
|
||||
|
||||
/*
|
||||
* Set handler for login
|
||||
*/
|
||||
|
Reference in New Issue
Block a user