Scarab commit: svn commit: r11349 - branches/scarab_11079_legacy_with_ant_maven1/src/webapp/scripts/sstree.js

[email protected] Thu, 7 Aug 2014 02:18:36 -0700 (PDT)
Newsgroups gmane.comp.java.scarab.cvs
Message-ID <[email protected]>
Author: dabbous
Date: 2014-08-07 02:18:36-0700
New Revision: 11349

Modified:
   branches/scarab_11079_legacy_with_ant_maven1/src/webapp/scripts/sstree.js

Log:
allow &amp; entity in treeviews

Modified: branches/scarab_11079_legacy_with_ant_maven1/src/webapp/scripts/sstree.js
Url: http://scarab.tigris.org/source/browse/scarab/branches/scarab_11079_legacy_with_ant_maven1/src/webapp/scripts/sstree.js?view=diff&pathrev=11349&r1=11348&r2=11349
==============================================================================
--- branches/scarab_11079_legacy_with_ant_maven1/src/webapp/scripts/sstree.js	(original)
+++ branches/scarab_11079_legacy_with_ant_maven1/src/webapp/scripts/sstree.js	2014-08-07 02:18:36-0700
@@ -89,8 +89,9 @@
 {
 	if (root.optionId == value) 
 	{
-		document.getElementById(key + ':Display').value = root.displayValue;
-		var data = function(){clickTree(attributeId,key,value,root.displayValue)};
+		//document.getElementById(key + ':Display').value = root.displayValue;
+                document.getElementById(key + ':Display').value = root.displayValue.replace(/&amp;/, '&');
+		var data = function(){clickTree(attributeId,key,value,root.displayValue.replace(/&amp;/, '&'))};
 		treeviewInit.push(data);
 	}

------------------------------------------------------
http://scarab.tigris.org/ds/viewMessage.do?dsForumId=3577&dsMessageId=3086366