[Debtags-commits] [svn] r2002 - web/trunk/cloud

Erich Schubert erich at costa.debian.org
Thu Oct 5 13:05:57 UTC 2006


Author: erich
Date: Thu Oct  5 13:05:56 2006
New Revision: 2002

Modified:
   web/trunk/cloud/index.html
Log:
slight refactoring (did I mention I hate javascript)

Modified: web/trunk/cloud/index.html
==============================================================================
--- web/trunk/cloud/index.html	(original)
+++ web/trunk/cloud/index.html	Thu Oct  5 13:05:56 2006
@@ -20,15 +20,17 @@
 
 			var baseurl = "http://debtags.alioth.debian.org/cgi-bin/index.cgi?tags=";
 			var magicscale = 50;
-			var params = new Array();
-			var bindArgs = {
-				url: "/cgi-bin/erich/use::editing/interface::commandline",
-				error: function(type, data, evt){ alert("error"); },
-				mimetype: "text/json",
-				content: params
-			};
-			var req = dojo.io.bind(bindArgs);
-			dojo.event.connect(req, "load", this, "contentCallBack");
+
+			var tags = ["use::editing", "interface::commandline"];
+			function update() {
+				var bindArgs = {
+					url: "/cgi-bin/erich/" + tags.join("/"),
+					error: function(type, data, evt){ alert("error"); },
+					mimetype: "text/json",
+				};
+				var req = dojo.io.bind(bindArgs);
+				dojo.event.connect(req, "load", this, "contentCallBack");
+			}
 
 			/* sort by tag name */
 			function alphasort(a, b) {
@@ -162,6 +164,8 @@
 				tagcloud.innerHTML = "";
 				makeCloud( tagcloud, tags);
 			}
+
+			update();
 		</script>
 	</body>
 </html>



More information about the Debtags-commits mailing list