Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixed hover issue

  • Loading branch information...
commit 42767a3c2372dfedc09fa9177fba06b69493963e 1 parent e122d26
jeads jeads authored
5 datazilla/webapp/static/js/b2g_apps/AppsPage.js
@@ -17,13 +17,16 @@ var AppsPage = new Class( {
17 17 this.parent(options);
18 18 this.revisionLength = 16;
19 19
  20 + this.gaiaHrefBase = "https://github.com/mozilla-b2g/gaia/tree/";
  21 + this.geckoHrefBase = "https://github.com/mozilla-b2g/B2G/tree/";
20 22 },
21 23
22 24 setRefData: function(){
23 25
24 26 APPS_PAGE.refData = {};
25 27
26   - APPS_PAGE.refData.project = 'b2g';
  28 + var urlObj = APPS_PAGE.urlObj.data;
  29 + APPS_PAGE.refData.project = urlObj.seg.path[0];
27 30
28 31 },
29 32 getRevisionSlice: function(revision){
3  datazilla/webapp/static/js/b2g_apps/PerformanceGraphComponent.js
@@ -221,6 +221,8 @@ var PerformanceGraphComponent = new Class({
221 221 this.plot.unhighlight();
222 222 this.plot.highlight(item.seriesIndex, item.dataIndex);
223 223
  224 + this._hoverPlot(event, pos, item);
  225 +
224 226 $(this.view.appContainerSel).trigger(
225 227 this.perfPlotClickEvent,
226 228 { 'series':seriesDatum, 'datapoint':datapointDatum[0] }
@@ -323,6 +325,7 @@ var PerformanceGraphView = new Class({
323 325 datapointDatum[fieldName]
324 326 );
325 327 $(idSel).attr('title', datapointDatum[fieldName]);
  328 + $(idSel).attr('href', APPS_PAGE.gaiaHrefBase + value);
326 329 }
327 330
328 331 $(idSel).text( datapointDatum[fieldName] );
12 datazilla/webapp/static/js/b2g_apps/ReplicateGraphComponent.js
@@ -188,6 +188,18 @@ var ReplicateGraphView = new Class({
188 188 'title', jsonData['json_blob']['test_build'][field]
189 189 );
190 190
  191 + if(field === 'revision'){
  192 + $(idAttr).attr(
  193 + 'href',
  194 + APPS_PAGE.gaiaHrefBase + jsonData['json_blob']['test_build'][field]
  195 + );
  196 + }else{
  197 + $(idAttr).attr(
  198 + 'href',
  199 + APPS_PAGE.geckoHrefBase + jsonData['json_blob']['test_build'][field]
  200 + );
  201 + }
  202 +
191 203 }else if(field === 'date'){
192 204
193 205 value = this.convertTimestampToDate(
2  datazilla/webapp/static/js/b2g_apps/apps-summary-min.js
1 addition, 1 deletion not shown
6 datazilla/webapp/templates/apps.summary.html
@@ -66,7 +66,7 @@
66 66 <div id="app_perf_chart" style="width:905px; height:370px; margin-top:5px; margin-left:35px;"></div>
67 67 <div id="app_perf_detail_container" class="ui-widget ui-widget-header ui-corner-all app-detail-graph-container">
68 68 <div style="width:200px;" class="app-control-element app-control-small-element">Application:<span id="app_series_application" class="app-data"></span></div>
69   - <div style="width:185px;" class="app-control-element app-control-small-element">Gaia Revision:<span id="app_series_revision" class="app-data"></span></div>
  69 + <div style="width:185px;" class="app-control-element app-control-small-element">Gaia Revision:<a id="app_series_revision" target="_blank" class="app-data"></a></div>
70 70 <div style="width:140px;" class="app-control-element app-control-small-element">Date:<span id="app_series_formatted_date_run" class="app-data"></span></div>
71 71 <div style="width:80px;" class="app-control-element app-control-small-element">Mean:<span id="app_series_avg" class="app-data"></span></div>
72 72 <div style="width:75px;" class="app-control-element app-control-small-element">Min:<span id="app_series_min" class="app-data"></span></div>
@@ -82,8 +82,8 @@
82 82 <div style="width:120px;" class="app-control-element su-large-text">Test Replicates</div>
83 83 <div style="width:185px;" class="app-control-element app-control-small-element">Application:<span id="app_replicate_application" class="app-data"></span></div>
84 84 <div style="width:200px;" class="app-control-element app-control-small-element">Test:<span id="app_replicate_test" class="app-data"></span></div>
85   - <div style="width:185px;" class="app-control-element app-control-small-element">Gaia Revision:<span id="app_replicate_revision" class="app-data"></span></div>
86   - <div style="width:190px;" class="app-control-element app-control-small-element">Gecko Revision:<span id="app_replicate_gecko_revision" class="app-data"></span></div>
  85 + <div style="width:185px;" class="app-control-element app-control-small-element">Gaia Revision:<a id="app_replicate_revision" target="_blank" class="app-data"></a></div>
  86 + <div style="width:190px;" class="app-control-element app-control-small-element">Gecko Revision:<a id="app_replicate_gecko_revision" target="_blank" class="app-data"></a></div>
87 87 </div>
88 88 </div>
89 89 <div class="ui-widget ui-widget-header ui-corner-all app-graph-container-two">

0 comments on commit 42767a3

Please sign in to comment.
Something went wrong with that request. Please try again.