aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorelijahe2013-11-19 15:43:34 (EST)
committerskaegi2013-11-19 17:59:11 (EST)
commitb2cba544d6d5c52bd9e65006d4bcb92d8e258c46 (patch)
treef27370d07b2f463193c494e47be885cb7bcd1f0d
parente6e57bfcdeb0a0552b2018769b4c9b36e622f752 (diff)
downloadorg.eclipse.orion.client-b2cba544d6d5c52bd9e65006d4bcb92d8e258c46.zip
org.eclipse.orion.client-b2cba544d6d5c52bd9e65006d4bcb92d8e258c46.tar.gz
org.eclipse.orion.client-b2cba544d6d5c52bd9e65006d4bcb92d8e258c46.tar.bz2
Bug 421877 - [client] Spaces not removed from outliner IDsv20131119-2259
--Signed-off-by: Elijah El-Haddad <elijahe@ca.ibm.com>
-rw-r--r--bundles/org.eclipse.orion.client.ui/web/orion/outliner.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.orion.client.ui/web/orion/outliner.js b/bundles/org.eclipse.orion.client.ui/web/orion/outliner.js
index d2934ee..c52af9b 100644
--- a/bundles/org.eclipse.orion.client.ui/web/orion/outliner.js
+++ b/bundles/org.eclipse.orion.client.ui/web/orion/outliner.js
@@ -119,7 +119,7 @@ define([
return item.outlinerId;
}
// Generate an id. Since these id's are used in the DOM, we strip out characters that shouldn't be in a DOM id.
- var originalId = item.label.replace(/[\\\/\.\:\-\_]/g, "");
+ var originalId = item.label.replace(/[\\\/\.\:\-\_\s]/g, "");
var id = originalId;
var number = 0;
// We might have duplicate id's if the outline items are duplicated, or if we happen to have another dom id using