From eb9a3b0182691045e8238abd187b5dbbcb159aba Mon Sep 17 00:00:00 2001 From: Alex Holachek Date: Sun, 14 Feb 2016 00:43:26 -0600 Subject: [PATCH] switch to currenttarget instead of target --- src/js/widgets/list_of_things/paginated_view.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/js/widgets/list_of_things/paginated_view.js b/src/js/widgets/list_of_things/paginated_view.js index f97851e81..64ba89a27 100644 --- a/src/js/widgets/list_of_things/paginated_view.js +++ b/src/js/widgets/list_of_things/paginated_view.js @@ -199,13 +199,13 @@ define([ changePageWithButton: function (e) { e.preventDefault(); - var $target = $(e.target); + var $target = $(e.currentTarget); if ($target.parent().hasClass("disabled")) return; var transform = $target.hasClass("next-page") ? 1 : -1; var pageVal = this.model.get("page") + transform; this.trigger('pagination:select', pageVal); - if (this.resultsWidget) {analytics('send', 'event', 'interaction', 'results-list-pagination', pageVal); } + if (this.resultsWidget) {analytics('send', 'event', 'interaction', 'results-list-pagination', pageVal) } }, tabOrEnterChangePageWithInput : function (e) { @@ -215,6 +215,9 @@ define([ if (e.keyCode == 13 || e.keyCode == 9){ this.trigger('pagination:select', pageVal); } + + if (this.resultsWidget) {analytics('send', 'event', 'interaction', 'results-list-pagination', pageVal) } + },