community-commits mailing list archives

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

URL: http://svn.apache.org/r1652038
Log:
init with "Apache Foo" if no project name is set

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=1652038&r1=1652037&r2=1652038&view=diff
==============================================================================
--- comdev/projects.apache.org/site/js/projects.js (original)
+++ comdev/projects.apache.org/site/js/projects.js Thu Jan 15 10:44:18 2015
@@ -145,6 +145,7 @@ function editProject(json, project) {
     obj.innerHTML = "<a href='/edit/'>Back to front page</a><br/><h1>Project
editor:</h1><p>Editing " + project + ".json:</p>"
     if (!json || !json.name) {
 	json = projects[project] ? projects[project] : json
+	json.name = json.name ? json.name : "Apache Foo";
     }
     if (json.category) {
 	json.category = json.category.replace(/http:\/\/projects.apache.org\/category\//gi, "")



Mime
View raw message