Browse Source

fixes for opera

Nicolas Cannasse 19 years ago
parent
commit
938fdbc8cf
2 changed files with 2 additions and 1 deletions
  1. 1 1
      std/tools/haxedoc/HtmlPrinter.hx
  2. 1 0
      std/tools/haxedoc/template.xml

+ 1 - 1
std/tools/haxedoc/HtmlPrinter.hx

@@ -146,7 +146,7 @@ class HtmlPrinter {
 			case TPackage(name,full,list):
 				if( filtered(full,true) )					
 					continue;
-				print('<li><a href="#" class="package" onclick="toggle(\'$id\')">$name</a><div id="$id" class="package_content">', { id : full.split(".").join("_"), name : name });
+				print('<li><a href="#" class="package" onclick="return toggle(\'$id\')">$name</a><div id="$id" class="package_content">', { id : full.split(".").join("_"), name : name });
 				var old = curpackage;
 				curpackage = full;
 				processPackage(name,list);

+ 1 - 0
std/tools/haxedoc/template.xml

@@ -9,6 +9,7 @@
 		var e = document.getElementById(id);
 		e.isopen = !e.isopen;
 		e.style.display = e.isopen?"block":"none";
+		return false;
 	}
 -->
 </script>