From 752c5b6ff87f4c3ccab1e287a735af882330f7b6 Mon Sep 17 00:00:00 2001 From: "Mike P. Sinn" Date: Fri, 18 Sep 2020 15:01:57 -0500 Subject: [PATCH] Removed polymorphic trackAll usage --- src/js/controllers/remindersInboxCtrl.js | 5 +---- .../items/notification-value-input-buttons.html | 10 +++++----- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/js/controllers/remindersInboxCtrl.js b/src/js/controllers/remindersInboxCtrl.js index e19ac22b92..945666b1cc 100644 --- a/src/js/controllers/remindersInboxCtrl.js +++ b/src/js/controllers/remindersInboxCtrl.js @@ -278,11 +278,8 @@ angular.module('starter').controller('RemindersInboxCtrl', ["$scope", "$state", refreshIfRunningOutOfNotifications(); return n; }; - $scope.track = function(n, value, $ev, trackAll){ // Keep trackAll param because it's used in templates/items/notification-item.html + $scope.track = function(n, value, $ev){ // Keep trackAll param because it's used in templates/items/notification-item.html if(isGhostClick($ev)){return false;} - if(trackAll){ - return $scope.trackAll(n, value, $ev); - } n.action = 'track'; n.modifiedValue = value; var valueUnit = qm.stringHelper.formatValueUnitDisplayText(n.modifiedValue + ' ' + n.unitAbbreviatedName); diff --git a/src/templates/items/notification-value-input-buttons.html b/src/templates/items/notification-value-input-buttons.html index 8a142d9cc5..e2ef88f9a9 100644 --- a/src/templates/items/notification-value-input-buttons.html +++ b/src/templates/items/notification-value-input-buttons.html @@ -11,7 +11,7 @@ @@ -23,7 +23,7 @@ @@ -35,7 +35,7 @@ @@ -48,13 +48,13 @@