From bd2727068949943d64e6c57119e0f225d67a6bdb Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Tue, 25 Oct 2016 07:04:28 +0000 Subject: [PATCH] don't use "Boolean" for parsing strings, as "null" would end up being true! git-svn-id: https://xpra.org/svn/Xpra/trunk@14278 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- src/html5/connect.html | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/src/html5/connect.html b/src/html5/connect.html index f1de8ccae8..4d6f34af5d 100644 --- a/src/html5/connect.html +++ b/src/html5/connect.html @@ -375,14 +375,22 @@

Advanced options

} document.getElementById('keyboard_layout').value = keyboard_layout; - var exit_with_children = Boolean(window.location.getParameter("exit_with_children") || ""); - $('input#exit_with_children').prop("checked", exit_with_children); - var exit_with_client = Boolean(window.location.getParameter("exit_with_client") || ""); - $('input#exit_with_client').prop("checked", exit_with_client); - var sound = Boolean(window.location.getParameter("sound") || ""); - $('input#sound').prop("checked", sound); - var normal_fullscreen = Boolean(window.location.getParameter("normal_fullscreen") || ""); - $('input#normal_fullscreen').prop("checked", normal_fullscreen); + var exit_with_children = window.location.getParameter("exit_with_children") || ""; + if(exit_with_children=="true") { + $('input#exit_with_children').prop("checked", exit_with_children); + } + var exit_with_client = window.location.getParameter("exit_with_client") || ""; + if(exit_with_client=="true") { + $('input#exit_with_client').prop("checked", exit_with_client); + } + var sound = window.location.getParameter("sound") || ""; + if(sound=="true") { + $('input#sound').prop("checked", sound); + } + var normal_fullscreen = window.location.getParameter("normal_fullscreen") || ""; + if(normal_fullscreen=="true") { + $('input#normal_fullscreen').prop("checked", normal_fullscreen); + } $("#expandopts").click(function() { $("#hiddenopts").slideToggle();