eagle-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jjt...@apache.org
Subject eagle git commit: [EAGLE-1001] Compare Chart of JPM detail isn't sorted
Date Fri, 14 Apr 2017 08:48:08 GMT
Repository: eagle
Updated Branches:
  refs/heads/master 9b488f1fe -> c243f4161


[EAGLE-1001] Compare Chart of JPM detail isn't sorted

- sort job list by startTime

https://issues.apache.org/jira/browse/EAGLE-1001

Author: r7raul1984 <tangjijun@yhd.com>
Author: JiJun Tang <tangjijun@yhd.com>

Closes #913 from r7raul1984/EAGLE-1001.


Project: http://git-wip-us.apache.org/repos/asf/eagle/repo
Commit: http://git-wip-us.apache.org/repos/asf/eagle/commit/c243f416
Tree: http://git-wip-us.apache.org/repos/asf/eagle/tree/c243f416
Diff: http://git-wip-us.apache.org/repos/asf/eagle/diff/c243f416

Branch: refs/heads/master
Commit: c243f4161d9ac62e9cb8af90c604ca5452afd7cc
Parents: 9b488f1
Author: r7raul1984 <tangjijun@yhd.com>
Authored: Fri Apr 14 08:47:54 2017 +0000
Committer: r7raul1984 <tangjijun@yhd.com>
Committed: Fri Apr 14 08:47:54 2017 +0000

----------------------------------------------------------------------
 .../src/main/webapp/app/apps/jpm/ctrl/compareCtrl.js             | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/eagle/blob/c243f416/eagle-jpm/eagle-jpm-web/src/main/webapp/app/apps/jpm/ctrl/compareCtrl.js
----------------------------------------------------------------------
diff --git a/eagle-jpm/eagle-jpm-web/src/main/webapp/app/apps/jpm/ctrl/compareCtrl.js b/eagle-jpm/eagle-jpm-web/src/main/webapp/app/apps/jpm/ctrl/compareCtrl.js
index 85168e3..33e1a0d 100644
--- a/eagle-jpm/eagle-jpm-web/src/main/webapp/app/apps/jpm/ctrl/compareCtrl.js
+++ b/eagle-jpm/eagle-jpm-web/src/main/webapp/app/apps/jpm/ctrl/compareCtrl.js
@@ -54,6 +54,10 @@
 						title: "No statistic info",
 						content: "Current job do not have enough statistic info. Please check 'jobDefId' if
your job have run many times."
 					});
+				} else {
+				    jobList.sort(function (a, b) {
+					return a.startTime - b.startTime;
+				    });
 				}
 
 				function findJob(jobId) {


Mime
View raw message