community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1652032 - /comdev/projects.apache.org/site/js/projects.js
Date Thu, 15 Jan 2015 10:17:54 GMT
Author: humbedooh
Date: Thu Jan 15 10:17:54 2015
New Revision: 1652032

URL: http://svn.apache.org/r1652032
Log:
check that repository string is a valid value

Modified:
    comdev/projects.apache.org/site/js/projects.js

Modified: comdev/projects.apache.org/site/js/projects.js
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/site/js/projects.js?rev=1652032&r1=1652031&r2=1652032&view=diff
==============================================================================
--- comdev/projects.apache.org/site/js/projects.js (original)
+++ comdev/projects.apache.org/site/js/projects.js Thu Jan 15 10:17:54 2015
@@ -428,12 +428,12 @@ function renderProjectPage(json, state)
 	p.innerHTML = "Repositories:"
 	obj.appendChild(p);	
 	var ul = document.createElement('ul');
-	if (json.SVNRepository) {
+	if (json.SVNRepository&& json.SVNRepository.length > 0) {
 	    var li = document.createElement('li');
 	    li.innerHTML = "<b>Subversion:</b> <a target=*_blank' href='" + json.SVNRepository
+ "'>" + json.SVNRepository + "</a>"
 	    ul.appendChild(li);
 	}
-	if (json.GitRepository) {
+	if (json.GitRepository && json.GitRepository.length > 0) {
 	    var li = document.createElement('li');
 	    li.innerHTML = "<b>Git:</b> <a target=*_blank' href='" + json.GitRepository
+ "'>" + json.GitRepository + "</a>"
 	    ul.appendChild(li);



Mime
View raw message