Tab disable fixed
authoraditya-nambiar <aditya.nambiar007@gmail.com>
Sat, 9 Aug 2014 06:23:25 +0000 (11:53 +0530)
committeraditya-nambiar <aditya.nambiar007@gmail.com>
Sat, 9 Aug 2014 06:23:25 +0000 (11:53 +0530)
js/angular-crmMailingAB.js

index 59d41596c438539910188383dd16ed3171e01104..a08ff3e0f01305e011989501e203d2c7575076b2 100644 (file)
     $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];
       // 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){