2009/dap/ReSpec.js/js respec.js,1.109,1.110

Update of /sources/public/2009/dap/ReSpec.js/js
In directory hutz:/tmp/cvs-serv21837

Modified Files:
	respec.js 
Log Message:
Small change - if there is no edDraftURI parameter, then don't put out the ed draft header.

Index: respec.js
===================================================================
RCS file: /sources/public/2009/dap/ReSpec.js/js/respec.js,v
retrieving revision 1.109
retrieving revision 1.110
diff -u -d -r1.109 -r1.110
--- respec.js	15 Apr 2010 14:31:45 -0000	1.109
+++ respec.js	15 Apr 2010 14:48:08 -0000	1.110
@@ -511,10 +511,13 @@
         header +=
             "<h2>" + (this.specStatus == "unofficial" ? "" : "W3C ") + 
             this.status2text[this.specStatus] + " " + this._humanDate(this.publishDate) + "</h2><dl>";
-        if (!this.isNoTrack)
+        if (!this.isNoTrack) {
             header += "<dt>This version:</dt><dd><a href='" + thisVersion + "'>" + thisVersion + "</a></dd>" + 
-                      "<dt>Latest published version:</dt><dd>" + latestVersion + "</dd>" + 
-                      "<dt>Latest editor's draft:</dt><dd><a href='" + this.edDraftURI + "'>" + this.edDraftURI + "</a></dd>";
+                      "<dt>Latest published version:</dt><dd>" + latestVersion + "</dd>"; 
+            if (this.edDraftURI) {
+                header += "<dt>Latest editor's draft:</dt><dd><a href='" + this.edDraftURI + "'>" + this.edDraftURI + "</a></dd>";
+            }
+        }
         if (this.specStatus != "FPWD" && !this.isNoTrack)
             header += "<dt>Previous version:</dt><dd>" + prevVersion + "</dd>";
 

Received on Thursday, 15 April 2010 14:48:12 UTC