Skip to content

Commit

Permalink
updated src file and build versions
Browse files Browse the repository at this point in the history
  • Loading branch information
arielfaur committed Sep 14, 2015
1 parent 512a593 commit 7150b18
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 12 deletions.
2 changes: 1 addition & 1 deletion dist/ion-wizard.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions example-storage/www/js/ion-wizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,15 @@ angular.module('ionic.wizard', [])
}
}
}])
.directive('ionWizardPrevious', ['$rootScope', '$ionicSlideBoxDelegate', function($rootScope) {
.directive('ionWizardPrevious', ['$rootScope', '$ionicSlideBoxDelegate', function($rootScope, $ionicSlideBoxDelegate) {
return{
restrict: 'EA',
scope: {},
link: function(scope, element, attrs, controller) {

element.addClass('ng-hide');
if ($ionicSlideBoxDelegate.currentIndex() == 0){
element.addClass('ng-hide');
}

element.on('click', function() {
$rootScope.$broadcast("wizard:Previous");
Expand All @@ -116,6 +118,9 @@ angular.module('ionic.wizard', [])
restrict: 'EA',
scope: {},
link: function(scope, element, attrs, controller) {
if ($ionicSlideBoxDelegate.currentIndex() == $ionicSlideBoxDelegate.slidesCount() - 1){
element.addClass('ng-hide');
}
element.on('click', function() {
$rootScope.$broadcast("wizard:Next");
});
Expand All @@ -139,6 +144,9 @@ angular.module('ionic.wizard', [])
},
link: function(scope, element, attrs) {
element.addClass('ng-hide');
if ($ionicSlideBoxDelegate.currentIndex() == $ionicSlideBoxDelegate.slidesCount() - 1){
element.removeClass('ng-hide');
}

function checkCondition() {
return (angular.isUndefined(attrs.condition)) ? true : scope.startCondition();
Expand All @@ -159,4 +167,4 @@ angular.module('ionic.wizard', [])
});
}
}
}]);
}]);
2 changes: 1 addition & 1 deletion example-storage/www/js/ion-wizard.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions example/www/js/ion-wizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,15 @@ angular.module('ionic.wizard', [])
}
}
}])
.directive('ionWizardPrevious', ['$rootScope', '$ionicSlideBoxDelegate', function($rootScope) {
.directive('ionWizardPrevious', ['$rootScope', '$ionicSlideBoxDelegate', function($rootScope, $ionicSlideBoxDelegate) {
return{
restrict: 'EA',
scope: {},
link: function(scope, element, attrs, controller) {

element.addClass('ng-hide');
if ($ionicSlideBoxDelegate.currentIndex() == 0){
element.addClass('ng-hide');
}

element.on('click', function() {
$rootScope.$broadcast("wizard:Previous");
Expand All @@ -116,6 +118,9 @@ angular.module('ionic.wizard', [])
restrict: 'EA',
scope: {},
link: function(scope, element, attrs, controller) {
if ($ionicSlideBoxDelegate.currentIndex() == $ionicSlideBoxDelegate.slidesCount() - 1){
element.addClass('ng-hide');
}
element.on('click', function() {
$rootScope.$broadcast("wizard:Next");
});
Expand All @@ -139,6 +144,9 @@ angular.module('ionic.wizard', [])
},
link: function(scope, element, attrs) {
element.addClass('ng-hide');
if ($ionicSlideBoxDelegate.currentIndex() == $ionicSlideBoxDelegate.slidesCount() - 1){
element.removeClass('ng-hide');
}

function checkCondition() {
return (angular.isUndefined(attrs.condition)) ? true : scope.startCondition();
Expand All @@ -159,4 +167,4 @@ angular.module('ionic.wizard', [])
});
}
}
}]);
}]);
2 changes: 1 addition & 1 deletion example/www/js/ion-wizard.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7150b18

Please sign in to comment.