From 8c7dab96f6d51774e7012cdb4d58b59459d60542 Mon Sep 17 00:00:00 2001 From: ZitRos Date: Wed, 4 Jan 2017 15:22:20 +0200 Subject: [PATCH] No initial class list bug fix --- package.json | 2 +- web/js/Source.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 91a32c3..6151972 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "CacheClassExplorer", - "version": "1.19.0", + "version": "1.19.1", "description": "Class Explorer for InterSystems Caché", "directories": { "test": "test" }, "dependencies": {}, diff --git a/web/js/Source.js b/web/js/Source.js index 9f78e25..9e59d56 100755 --- a/web/js/Source.js +++ b/web/js/Source.js @@ -14,10 +14,12 @@ var Source = function (cacheUMLExplorer) { */ Source.prototype.getClassTree = function (includeMapped, callback) { + var ns = (this.cue.NAMESPACE ? "?namespace=" + encodeURIComponent(this.cue.NAMESPACE) : ""); + lib.load( this.URL + "/GetClassTree" - + (this.cue.NAMESPACE ? "?namespace=" + encodeURIComponent(this.cue.NAMESPACE) : "") - + "&mapped=" + (includeMapped ? "1" : "0"), + + ns + + (ns ? "&" : "?") + "mapped=" + (includeMapped ? "1" : "0"), null, callback );