community-commits mailing list archives

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

URL: http://svn.apache.org/r1651959
Log:
don't override what we just passed on, unless a JSON object exists.

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=1651959&r1=1651958&r2=1651959&view=diff
==============================================================================
--- comdev/projects.apache.org/site/js/projects.js (original)
+++ comdev/projects.apache.org/site/js/projects.js Thu Jan 15 07:35:53 2015
@@ -144,7 +144,7 @@ function editProject(json, project) {
     var obj = document.getElementById('contents');
     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 = projects[project] ? projects[project] : json
     }
     if (json.category) {
 	json.category = json.category.replace(/http:\/\/projects.apache.org\/category\//gi, "")



Mime
View raw message