[Debtags-commits] [svn] r1512 - central-database/branches/alioth/webfrontend

Enrico Zini enrico at costa.debian.org
Fri Nov 18 18:28:18 UTC 2005


Author: enrico
Date: Fri Nov 18 18:28:18 2005
New Revision: 1512

Modified:
   central-database/branches/alioth/webfrontend/edittemplate.html
Log:
Addurl and delurl work again

Modified: central-database/branches/alioth/webfrontend/edittemplate.html
==============================================================================
--- central-database/branches/alioth/webfrontend/edittemplate.html	(original)
+++ central-database/branches/alioth/webfrontend/edittemplate.html	Fri Nov 18 18:28:18 2005
@@ -31,7 +31,7 @@
 		  t.name = "<tmpl_var name='NAME'>";
 		  t.sdesc = unescape("<tmpl_var name='SDESC'>");
 		  t.ldesc = unescape("<tmpl_var name='LDESC'>");
-		  // <a href='<tmpl_var name="REMURL">'>[remove]</a>
+		  t.remurl = unescape("<tmpl_var name='REMURL'>");
 		  f.hasTagsSorted.push(t);
 	  </tmpl_loop>
 	  <tmpl_loop name="TAGS">
@@ -41,7 +41,7 @@
 		  t.name = "<tmpl_var name='NAME'>";
 		  t.sdesc = unescape("<tmpl_var name='SDESC'>");
 		  t.ldesc = unescape("<tmpl_var name='LDESC'>");
-		  // <a href='<tmpl_var name="ADDURL">'>[add]</a>
+		  t.addurl = unescape("<tmpl_var name='ADDURL'>");
 		  f.newTagsSorted.push(t);
 	  </tmpl_loop>
 	  facetsSorted.push(f);
@@ -120,7 +120,7 @@
 		for (j = 0; j < facets[f.name].hasTagsSorted.length; j++)
 		{
 			var t = facets[f.name].hasTagsSorted[j];
-			document.write("\t<li>"+t.sdesc+" <a class='button' href='<tmpl_var name='REMURL'>'>[remove]</a></li>\n");
+			document.write("\t<li>"+t.sdesc+" <a class='button' href='"+t.remurl+"'>[remove]</a></li>\n");
 		}
 	}
       </script>
@@ -157,7 +157,7 @@
 			document.write("\t<li>\n");
 			document.write("\t\t<b>"+t.sdesc+"</b>\n");
 			// document.write("\t\t<tmpl_if name="NPROB">(<tmpl_var name="NPROB">%)</tmpl_if>");
-			document.write("\t\t<a class='button' ref='<tmpl_var name='REMURL'>'>[remove]</a>\n");
+			document.write("\t\t<a class='button' href='"+t.remurl+"'>[remove]</a>\n");
 			document.write("\t</li>\n");
 		}
 		for (j = 0; j < facets[f.name].newTagsSorted.length; j++)
@@ -166,7 +166,7 @@
 			document.write("\t<li>\n");
 			document.write("\t\t"+t.sdesc+"\n");
 			// document.write("\t\t<tmpl_if name="NPROB">(<tmpl_var name="NPROB">%)</tmpl_if>");
-			document.write("\t\t<a class='button' ref='<tmpl_var name='ADDURL'>'>[add]</a>\n");
+			document.write("\t\t<a class='button' href='"+t.addurl+"'>[add]</a>\n");
 			document.write("\t</li>\n");
 		}
     		document.write("\t</ul>\n");



More information about the Debtags-commits mailing list