community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1679445 - /comdev/projects.apache.org/site/js/projects.js
Date Thu, 14 May 2015 19:55:48 GMT
Author: hboutemy
Date: Thu May 14 19:55:48 2015
New Revision: 1679445

URL: http://svn.apache.org/r1679445
Log:
no special font for desciption

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=1679445&r1=1679444&r2=1679445&view=diff
==============================================================================
--- comdev/projects.apache.org/site/js/projects.js (original)
+++ comdev/projects.apache.org/site/js/projects.js Thu May 14 19:55:48 2015
@@ -318,10 +318,7 @@ function renderProjectPage(project, proj
     obj.innerHTML = "<h1>" + name + "</h1>";
 
     // project description
-    var p = document.createElement('p');
-    p.style.fontFamily = '"Times New Roman", Times, serif';
-    p.innerHTML = description.replace(/([^\r\n]+)\r?\n\r?\n/g,function(a) { return "<p>"+a+"</p>"});
-    obj.appendChild(p);
+    appendElementWithInnerHTML(obj,'p',description.replace(/([^\r\n]+)\r?\n\r?\n/g,function(a)
{ return "<p>"+a+"</p>"}));
 
     var ul = document.createElement('ul');
 



Mime
View raw message