Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #3652 from mozilla/measure-dashboard-pagination-us…
Browse files Browse the repository at this point in the history
…age-1177264

bug 1177264 - measure dashboard pagination usage
  • Loading branch information
stephaniehobson committed Nov 13, 2015
2 parents 8651bef + 546d149 commit 7506532
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion kuma/dashboards/templates/dashboards/revisions.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,14 @@ <h1><a href="{{ url('dashboards.revisions') }}">{{ title }}</a></h1>
// AJAX loads for pagination
$revisionReplaceBlock.on('click', '.pagination a', function (e) {
e.preventDefault();
$pageInput.val(/page=([^&#]*)/.exec(this.href)[1]);
var pageNum = /page=([^&#]*)/.exec(this.href)[1];
var linkText = this.text.trim();
mdn.analytics.trackEvent({
category: 'Dashboard Pagination',
action: pageNum,
label: linkText
});
$pageInput.val(pageNum);
$filterForm.submit();
});

Expand Down

0 comments on commit 7506532

Please sign in to comment.