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

index 697c87de92c03a700a4ed5d234edf1e4c962d6eb..fccb824c9269e75497f26f785cdbff5547b0ad15 100644 (file)
             link: function(scope, element, attrs) {
 
                 $(element).parent().parent().parent().tabs(scope.$eval(attrs.nexttab));
-                //$(element).parent().parent().parent().tabs({disabled:[1,2,3]});
+                var myarr = new Array(1,2,3)
+                $(element).parent().parent().parent().tabs({disabled:myarr});
                 //$(element).parent().parent().parent().tabs({"enable":1});
 
                 $(element).on("click",function() {
                     scope.adi=scope.adi +1;
-                   // $(element).parent().parent().parent().tabs({"enable":scope.adi});
+                    var myArray1 = new Array(  );
+                    for ( var i = scope.adi+1; i < 4; i++ ) {
+                        myArray1.push(i);
+                        console.log( "try " + i );
+                    }
+                    $(element).parent().parent().parent().tabs( "option", "disabled", myArray1 );
                     $(element).parent().parent().parent().tabs({active:scope.adi});
                     console.log("adiroxxx");
                 });