|
From: <tob...@us...> - 2014-07-12 01:23:46
|
Revision: 8539
http://sourceforge.net/p/bigdata/code/8539
Author: tobycraig
Date: 2014-07-12 01:23:36 +0000 (Sat, 12 Jul 2014)
Log Message:
-----------
#843 - Fixed links on performance tab
Modified Paths:
--------------
branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/js/workbench.js
Modified: branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/js/workbench.js
===================================================================
--- branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/js/workbench.js 2014-07-12 01:12:41 UTC (rev 8538)
+++ branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/js/workbench.js 2014-07-12 01:23:36 UTC (rev 8539)
@@ -1485,11 +1485,20 @@
/* Performance */
-$('#tab-selector a[data-target=performance]').click(function(e) {
- $.get(RO_URL_PREFIX + 'counters', function(data) {
+$('#tab-selector a[data-target=performance]').click(loadPerformance);
+
+function loadPerformance(path) {
+ if(typeof(path) == 'undefined') {
+ path = '';
+ }
+ $.get(RO_URL_PREFIX + 'counters?' + path, function(data) {
$('#performance-tab .box').html(data);
+ $('#performance-tab .box a').click(function(e) {
+ e.preventDefault();
+ loadPerformance(this.href.split('?')[1]);
+ });
});
-});
+}
/* Utility functions */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|