From 4a4973a0d3df46f78322ca577bf6896f2a58b730 Mon Sep 17 00:00:00 2001 From: Leigh B Stoller Date: Tue, 7 Apr 2015 12:25:59 -0600 Subject: [PATCH] Okay, why does json encode or decode, treat 0 as a string instead of an integer? --- www/aptui/js/instantiate.js | 2 +- www/aptui/js/quickvm_sup.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/www/aptui/js/instantiate.js b/www/aptui/js/instantiate.js index ae3c2d5f7..4ecdf7522 100644 --- a/www/aptui/js/instantiate.js +++ b/www/aptui/js/instantiate.js @@ -84,7 +84,7 @@ function (_, Constraints, sup, ppstart, aboutaptString, aboutcloudString, waitwa $('#quickvm_topomodal').modal('hide'); }); $('#instantiate_submit').click(function (event) { - if (webonly) { + if (webonly != 0) { event.preventDefault(); sup.SpitOops("oops", "You do not belong to any projects at your Portal, " + diff --git a/www/aptui/js/quickvm_sup.js b/www/aptui/js/quickvm_sup.js index 30c91b80c..0cd18596c 100755 --- a/www/aptui/js/quickvm_sup.js +++ b/www/aptui/js/quickvm_sup.js @@ -190,7 +190,7 @@ function VerifySpeaksfor(speaksfor, signature) document.cookie = cookie2; document.cookie = cookie3; - if (json.value.webonly) { + if (json.value.webonly != 0) { alert("You do not belong to any projects at your Portal, " + "so you will have very limited capabilities. Please " + "join or create a project at your Portal, to enable " + -- GitLab