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