CRM-21231: On CiviMail screen make 'Review and Schedule' tab active if required field...
authordeb.monish <monish.deb@jmaconsulting.biz>
Thu, 28 Sep 2017 11:45:17 +0000 (17:15 +0530)
committerdeb.monish <monish.deb@jmaconsulting.biz>
Tue, 10 Oct 2017 11:22:12 +0000 (16:52 +0530)
ang/crmUi.js

index 9ce768703075b009b0c9980a1771ec6e4de7dd1b..b8640ef29cdd52c2484bf3bd76ef5ab92c9895ee 100644 (file)
           };
           this.isSelectable = function(step) {
             if (step.selected) return false;
-            var result = false;
-            angular.forEach(steps, function(otherStep, otherKey) {
-              if (step === otherStep && otherKey <= maxVisited) result = true;
-            });
-            return result;
+            return this.$validStep();
           };
 
           /*** @param Object step the $scope of the step */