From be5751d1ce1cd59f07e5d90bd655f4d7fccee65f Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 30 Sep 2014 15:23:30 +0100 Subject: [PATCH] angular-crmMailingAB.js - Remove unnecessary variable --- js/angular-crmMailingAB.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/js/angular-crmMailingAB.js b/js/angular-crmMailingAB.js index fce99c7b99..ef07cc72aa 100755 --- a/js/angular-crmMailingAB.js +++ b/js/angular-crmMailingAB.js @@ -6,7 +6,6 @@ var partialUrl = function (relPath) { return CRM.resourceUrls['civicrm'] + '/partials/abtesting/' + relPath; }; - var mltokens = []; var crmMailingAB = angular.module('crmMailingAB', ['ngRoute', 'ui.utils', 'ngSanitize']); crmMailingAB.run(function ($rootScope, $templateCache) { @@ -55,7 +54,7 @@ } ]); -//----------------------------------------- + //----------------------------------------- // Add a new record by name. // Ex: /** @@ -92,8 +91,6 @@ $scope.mailid = []; $scope.preventsubmit = false; - - mltokens = CRM.crmMailing.mailTokens; if ($scope.currentABTest.declare_winning_time != null) { $scope.ans = $scope.currentABTest.declare_winning_time.split(" "); $scope.currentABTest.date = $scope.ans[0]; @@ -121,8 +118,6 @@ abmailC.success(function (data) { if (data.is_error == 0) { $scope.mailC = data; - - } }); } @@ -941,7 +936,7 @@ return { restrict: 'AE', link: function (scope, element, attrs) { - $(element).select2({width: "200px", data: mltokens, placeholder: "Insert Token"}); + $(element).select2({width: "200px", data: CRM.crmMailing.mailTokens, placeholder: "Insert Token"}); $(element).on('select2-selecting', function (e) { scope.$evalAsync('_resetSelection()'); -- 2.25.1