- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 14 Dec 2011 08:17:20 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/canvas-extensions/ReSpec.js/js In directory hutz:/tmp/cvs-serv27913/ReSpec.js/js Modified Files: respec.js Log Message: updated Index: respec.js =================================================================== RCS file: /sources/public/html5/canvas-extensions/ReSpec.js/js/respec.js,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- respec.js 14 Dec 2011 07:55:59 -0000 1.1 +++ respec.js 14 Dec 2011 08:17:18 -0000 1.2 @@ -753,7 +753,9 @@ header += "<h1 class='title' id='title'>" + this.title + "</h1>"; if (this.subtitle) header += "<h2 id='subtitle'>" + this.subtitle + "</h2>"; header += "<h2>" + this.status2text[this.specStatus] + " " + this._humanDate(this.publishDate) + "</h2><dl>"; - header += "<dt>This version:</dt><dd><a href='" + thisVersion + "'>" + thisVersion + "</a></dd>\n"; + if (this.specStatus !== "ED") { + header += "<dt>This version:</dt><dd><a href='" + thisVersion + "'>" + thisVersion + "</a></dd>\n"; + } if (this.latestVersion) { header+= "<dt>Latest published version:</dt><dd><a href='" + latestVersion + "'>" + latestVersion + "</a></dd>"; } @@ -765,11 +767,12 @@ header += "<dt>Previous version:</dt><dd><a href='" + prevVersion + "'>" + prevVersion + "</a></dd>"; } if(this.editors.length == 0) { - header += "<dt>" + "Editor" + ":</dt>"; error("There must be at least one editor."); + } else { + header += "<dt>" + "Editor" + ":</dt>"; + header += this.showPeople("Editor", this.editors); + header += this.showPeople("Author", this.authors); } - header += this.showPeople("Editor", this.editors); - header += this.showPeople("Author", this.authors); header += "</dl><p class='copyright'>"; header += "<a href='http://www.w3.org/Consortium/Legal/ipr-notice#Copyright'>Copyright</a> © " ; @@ -836,7 +839,9 @@ this.status2text[this.specStatus] + " " + this._humanDate(this.publishDate) + "</h2><dl>"; } if (!this.isNoTrack) { - header += "<dt>This version:</dt><dd><a href='" + thisVersion + "'>" + thisVersion + "</a></dd>"; + if (this.specStatus !== "ED") { + header += "<dt>This version:</dt><dd><a href='" + thisVersion + "'>" + thisVersion + "</a></dd>"; + } if (this.latestVersion) { header+= "<dt>Latest published version:</dt><dd>" + latestVersion + "</dd>"; } @@ -868,11 +873,12 @@ } if(this.editors.length == 0) { - header += "<dt>" + "Editor" + ":</dt>"; error("There must be at least one editor."); + } else { + header += "<dt>" + "Editor" + ":</dt>"; + header += this.showPeople("Editor", this.editors); + header += this.showPeople("Author", this.authors); } - header += this.showPeople("Editor", this.editors); - header += this.showPeople("Author", this.authors); header += "</dl>"; if (this.errata) {
Received on Wednesday, 14 December 2011 08:17:21 UTC