Skip to content

Commit

Permalink
don't use "Boolean" for parsing strings, as "null" would end up being…
Browse files Browse the repository at this point in the history
… true!

git-svn-id: https://xpra.org/svn/Xpra/trunk@14278 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Oct 25, 2016
1 parent 7680096 commit bd27270
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions src/html5/connect.html
Original file line number Diff line number Diff line change
Expand Up @@ -375,14 +375,22 @@ <h4 class="panel-title">Advanced options</h4>
}
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();
Expand Down

0 comments on commit bd27270

Please sign in to comment.