GUAC-634: Allow default value for local properties. Use default values within client and root UI.

This commit is contained in:
Michael Jumper committed 2014-04-14 18:59:58 -07:00
1 parent ce4174ffba
commit a049d2d0bf
4 files changed
+13 -14

No files matched your search

+2 -9
View File
@@ -423,25 +423,18 @@ if (GuacamoleRootUI.session_state.getProperty("clipboard"))
GuacamoleRootUI.fields.clipboard.value =
GuacamoleRootUI.session_state.getProperty("clipboard");
/*
* Default to true if auto-fit not specified
*/
if (GuacamoleRootUI.session_state.getProperty("auto-fit") === undefined)
GuacamoleRootUI.session_state.setProperty("auto-fit", true);
/*
* Initialize auto-fit setting in UI
*/
GuacamoleRootUI.settings.auto_fit.checked =
GuacamoleRootUI.session_state.getProperty("auto-fit");
GuacamoleRootUI.session_state.getProperty("auto-fit", true);
/*
* Initialize disable-sound setting in UI
*/
GuacamoleRootUI.settings.disable_sound.checked =
GuacamoleRootUI.session_state.getProperty("disable-sound");
GuacamoleRootUI.session_state.getProperty("disable-sound", false);
/*
* Set handler for logout