W3C home > Mailing lists > Public > public-dap-commits@w3.org > December 2009

2009/dap/ReSpec.js/js respec.js,1.66,1.67

From: Frederick Hirsch via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 04 Dec 2009 21:43:37 +0000
To: public-dap-commits@w3.org
Message-Id: <E1NGfw9-0006pf-7R@lionel-hutz.w3.org>
Update of /sources/public/2009/dap/ReSpec.js/js
In directory hutz:/tmp/cvs-serv26233/js

Modified Files:
	respec.js 
Log Message:
add prevRecShortname, adjust previous checkin to provide Editors heading even in error case, the old behaviour

Index: respec.js
===================================================================
RCS file: /sources/public/2009/dap/ReSpec.js/js/respec.js,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -d -r1.66 -r1.67
--- respec.js	4 Dec 2009 20:18:17 -0000	1.66
+++ respec.js	4 Dec 2009 21:43:35 -0000	1.67
@@ -382,8 +382,14 @@
         if (this.specStatus != "FPWD")
             header += "<dt>Previous version:</dt><dd>" + prevVersion + "</dd>";
 
+        if (this.prevRecShortname) {
+            var prevRecURI = "http://www.w3.org/TR/" + this.prevRecShortname + "/";
+            header += "<dt>Latest Recommendation:</dt><dd>" + 
+                '<a href="' + prevRecURI + '">' + prevRecURI + "</a></dd>";
+        }
 
         if(this.editors.length == 0) {
+            header += "<dt>" + "Editor" + ":</dt>";
             error("There must be at least one editor.");
         }
         header += this.showPeople("Editor", this.editors);
Received on Friday, 4 December 2009 21:43:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 4 December 2009 21:43:39 GMT