Scarab commit: svn commit: r10793 - trunk/src/webapp/scripts/sstree.js

Hussayn Dabbous <[email protected]>
Newsgroups gmane.comp.java.scarab.cvs
Message-ID <[email protected]>
Author: dabbous
Date: 2009-07-12 10:44:14-0700
New Revision: 10793

Modified:
   trunk/src/webapp/scripts/sstree.js

Log:
SCB2979: fixed another javascript error which occured on IE6 when an element was selected from the treeview attribute popup.

Modified: trunk/src/webapp/scripts/sstree.js
Url: http://scarab.tigris.org/source/browse/scarab/trunk/src/webapp/scripts/sstree.js?view=diff&pathrev=10793&r1=10792&r2=10793
==============================================================================
--- trunk/src/webapp/scripts/sstree.js	(original)
+++ trunk/src/webapp/scripts/sstree.js	2009-07-12 10:44:14-0700
@@ -88,7 +88,7 @@
 	
 	if (root._children.length > 0) {
 		document.writeln('<li>');
-		document.writeln('<a class="folder" onclick="toggle(this,\''+imgpath+'\');"></a><a href="javascript:clickTree(' + attributeId + ', \'' + key + '\', \'' + root.optionId + '\', \'' + root.displayValue + '\');">' + root.displayValue + '</a>');
+		document.writeln('<a class="folder" onclick="toggle(this,\''+imgpath+'\');"></a><a href="javascript:clickTree(\'' + attributeId + '\', \'' + key + '\', \'' + root.optionId + '\', \'' + root.displayValue + '\');">' + root.displayValue + '</a>');
 		document.writeln('<ol class="treeview">');			
 		for (var i = 0; i < root._children.length; i++) {			
 			renderJSONTree(attributeId, key, value, root._children[i],imgpath);						
@@ -104,7 +104,7 @@
 }
 
 
-function toggleTreePopup(key, caller) {
+function toggleTreePopup(key) {
 	if (document.getElementById(key + ':Popup').style.display !== 'inline-block') {
 		var elem = document.getElementById(key + ':Popup');
 		
@@ -142,7 +142,7 @@
 	document.getElementById(key).value = value;
 	document.getElementById(key + ':Display').value = display;
 	document.getElementById(key + ':Popup').style.display = 'none';				
-	document.onmouseup = undefined;
+	document.onmouseup = null;
 	
 	scope = ["treeview", attributeId, key, value, display];
 	observer.fire(scope);

------------------------------------------------------
http://scarab.tigris.org/ds/viewMessage.do?dsForumId=3577&dsMessageId=2370774
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.