community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1665073 - /comdev/reporter.apache.org/site/render.js
Date Sun, 08 Mar 2015 20:03:07 GMT
Author: humbedooh
Date: Sun Mar  8 20:03:07 2015
New Revision: 1665073

URL: http://svn.apache.org/r1665073
Log:
fix sorting so it doesn't resort after unshift

Modified:
    comdev/reporter.apache.org/site/render.js

Modified: comdev/reporter.apache.org/site/render.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/site/render.js?rev=1665073&r1=1665072&r2=1665073&view=diff
==============================================================================
--- comdev/reporter.apache.org/site/render.js (original)
+++ comdev/reporter.apache.org/site/render.js Sun Mar  8 20:03:07 2015
@@ -570,8 +570,8 @@ function renderFrontPage(json) {
 		btn.setAttribute("style", "margin-left: 48px;")
 		btn.setAttribute("id", "btn_all")
 		btn.setAttribute("class", "tab-title")
-		json.all.sort()
 		if (json.all.indexOf("-----------------------") == -1) {
+			json.all.sort()
 			json.all.unshift("-----------------------")
 			json.all.unshift("Members-only Quick-nav:")
 		}



Mime
View raw message