From 945ef66da6b1900acf753ef6f9c9b02e985be3d3 Mon Sep 17 00:00:00 2001 From: Shandem Date: Mon, 21 Jun 2010 14:55:18 +0000 Subject: [PATCH] Fixes: 27386 [TFS Changeset #70535] --- .../config/ClientDependency.config | 2 +- .../config/ClientDependency.config | 2 +- .../umbraco_client/Tree/UmbracoTree.js | 18 ++++++++++-------- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/config templates/config/ClientDependency.config b/config templates/config/ClientDependency.config index aa695b38f1..ed4c3ee102 100644 --- a/config templates/config/ClientDependency.config +++ b/config templates/config/ClientDependency.config @@ -10,7 +10,7 @@ NOTES: * Compression/Combination/Minification is not enabled unless debug="false" is specified on the 'compiliation' element in the web.config * A new version will invalidate both client and server cache and create new persisted files --> - + diff --git a/umbraco/presentation/config/ClientDependency.config b/umbraco/presentation/config/ClientDependency.config index f6be1a0d69..78a1e9eaf2 100644 --- a/umbraco/presentation/config/ClientDependency.config +++ b/umbraco/presentation/config/ClientDependency.config @@ -10,7 +10,7 @@ NOTES: * Compression/Combination/Minification is not enabled unless debug="false" is specified on the 'compiliation' element in the web.config * A new version will invalidate both client and server cache and create new persisted files --> - + diff --git a/umbraco/presentation/umbraco_client/Tree/UmbracoTree.js b/umbraco/presentation/umbraco_client/Tree/UmbracoTree.js index c27ff97d46..5e055b2d1e 100644 --- a/umbraco/presentation/umbraco_client/Tree/UmbracoTree.js +++ b/umbraco/presentation/umbraco_client/Tree/UmbracoTree.js @@ -880,15 +880,17 @@ Umbraco.Sys.registerNamespace("Umbraco.Controls"); _getUrlParams: function(nodeSource) { /// This converts Url query string params to json var p = {}; - var urlSplit = nodeSource.split("?"); - if (urlSplit.length > 1) { - var sp = urlSplit[1].split("&"); - for (var i = 0; i < sp.length; i++) { - var e = sp[i].split("="); - p[e[0]] = e[1]; + if (nodeSource) { + var urlSplit = nodeSource.split("?"); + if (urlSplit.length > 1) { + var sp = urlSplit[1].split("&"); + for (var i = 0; i < sp.length; i++) { + var e = sp[i].split("="); + p[e[0]] = e[1]; + } + p["rnd2"] = Umbraco.Utils.generateRandom(); } - p["rnd2"] = Umbraco.Utils.generateRandom(); - } + } return p; },