- From: Shane McCarron via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 15 Apr 2010 14:48:10 +0000
- To: public-dap-commits@w3.org
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