From 4a5acde4ba38dde78701d7d3e0a62773c97afbdc Mon Sep 17 00:00:00 2001
From: cramakri <cramakri>
Date: Mon, 4 Feb 2013 21:21:22 +0000
Subject: [PATCH] CCS-30 SP-488 : Changed the way the ipad-ui debug webapp
 detects the boolean value false.

SVN: 28287
---
 .../ipad-ui-ylab/1/as/webapps/ipad-debug/html/webapp.js         | 2 +-
 .../ipad-ui/1/as/webapps/ipad-debug/html/webapp.js              | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/openbis-ipad/ipad-example-data/ipad-ui-ylab/1/as/webapps/ipad-debug/html/webapp.js b/openbis-ipad/ipad-example-data/ipad-ui-ylab/1/as/webapps/ipad-debug/html/webapp.js
index cd74fb9aeab..07b20d2cebf 100644
--- a/openbis-ipad/ipad-example-data/ipad-ui-ylab/1/as/webapps/ipad-debug/html/webapp.js
+++ b/openbis-ipad/ipad-example-data/ipad-ui-ylab/1/as/webapps/ipad-debug/html/webapp.js
@@ -31,7 +31,7 @@ IpadModel.prototype.selectEntity = function(d) {
 	var permId = d[0].value;
 	var refcon = parseJson(d[1].value);
 	var rootLevel = d[5].value;
-	if ("True" == rootLevel) {
+	if ("[]" != rootLevel) {
 		this.selectNavigationEntity(permId, refcon);
 	} else {
 		this.selectNormalEntity(permId, refcon, d);
diff --git a/openbis-ipad/ipad-example-data/ipad-ui/1/as/webapps/ipad-debug/html/webapp.js b/openbis-ipad/ipad-example-data/ipad-ui/1/as/webapps/ipad-debug/html/webapp.js
index cd74fb9aeab..07b20d2cebf 100644
--- a/openbis-ipad/ipad-example-data/ipad-ui/1/as/webapps/ipad-debug/html/webapp.js
+++ b/openbis-ipad/ipad-example-data/ipad-ui/1/as/webapps/ipad-debug/html/webapp.js
@@ -31,7 +31,7 @@ IpadModel.prototype.selectEntity = function(d) {
 	var permId = d[0].value;
 	var refcon = parseJson(d[1].value);
 	var rootLevel = d[5].value;
-	if ("True" == rootLevel) {
+	if ("[]" != rootLevel) {
 		this.selectNavigationEntity(permId, refcon);
 	} else {
 		this.selectNormalEntity(permId, refcon, d);
-- 
GitLab