Disabling Works with order
authoraditya-nambiar <aditya.nambiar007@gmail.com>
Sat, 14 Jun 2014 19:13:12 +0000 (15:13 -0400)
committeraditya-nambiar <aditya.nambiar007@gmail.com>
Sat, 26 Jul 2014 04:48:14 +0000 (10:18 +0530)
js/angular-crmMailingAB.js

index fccb824c9269e75497f26f785cdbff5547b0ad15..37d5f187e9e12583cb92086fa433ebfc388df5c9 100644 (file)
     crmMailingAB.controller('TabsDemoCtrl', function($scope, crmApi, mailingList) {
 
         $scope.adi=0;
-        $scope.settab=function(){
-          //$scope.adi=$scope.adi + 1;
+        $scope.campaign_clicked= function(){
+            if($scope.adi >= 0 ){
+                $scope.adi  =0;
+            }
+        };
+        $scope.compose_clicked=function(){
+            if($scope.adi >=1){
+                $scope.adi =1;
+            }
+        };
+        $scope.rec_clicked=function(){
+            if($scope.adi >=2){
+                $scope.adi =2;
+            }
+        };
+        $scope.preview_clicked=function(){
+            if($scope.adi>=3){
+                $scope.adi=3;
+            }
+        };
 
 
-        };
 
     });