From: aditya-nambiar Date: Sat, 9 Aug 2014 06:23:25 +0000 (+0530) Subject: Tab disable fixed X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8d14aab834582dce6203e044ce9c97d292a81cf7;p=civicrm-core.git Tab disable fixed --- diff --git a/js/angular-crmMailingAB.js b/js/angular-crmMailingAB.js index 59d41596c4..a08ff3e0f0 100644 --- a/js/angular-crmMailingAB.js +++ b/js/angular-crmMailingAB.js @@ -113,6 +113,7 @@ $scope.eMailing = CRM.crmMailing.emailAdd; $scope.tmpList = CRM.crmMailing.mesTemplate; $scope.headerfooter = CRM.crmMailing.headerfooterList; + if($scope.currentABTest.declare_winning_time != null){ $scope.ans= $scope.currentABTest.declare_winning_time.split(" "); $scope.currentABTest.date=$scope.ans[0]; @@ -511,9 +512,9 @@ // responsible for registering DOM listeners as well as updating the DOM link: function (scope, element, attrs) { - $(element).parent().parent().parent().parent().tabs(scope.$eval(attrs.nexttab)); + $(element).parent().parent().parent().parent().parent().tabs(scope.$eval(attrs.nexttab)); var myarr = new Array(1, 2, 3) - $(element).parent().parent().parent().parent().tabs({disabled: myarr}); + $(element).parent().parent().parent().parent().parent().tabs({disabled: myarr}); $(element).on("click", function () { if(scope.tab_val==0){