|
2 | 2 | * Copyright 2015 Drifty Co.
|
3 | 3 | * http://drifty.com/
|
4 | 4 | *
|
5 |
| - * Ionic, v1.3.1 |
| 5 | + * Ionic, v1.3.2 |
6 | 6 | * A powerful HTML5 mobile app framework.
|
7 | 7 | * http://ionicframework.com/
|
8 | 8 | *
|
@@ -2204,7 +2204,8 @@ var LOADING_TPL =
|
2204 | 2204 | * .controller('LoadingCtrl', function($scope, $ionicLoading) {
|
2205 | 2205 | * $scope.show = function() {
|
2206 | 2206 | * $ionicLoading.show({
|
2207 |
| - * template: 'Loading...' |
| 2207 | + * template: 'Loading...', |
| 2208 | + * duration: 3000 |
2208 | 2209 | * }).then(function(){
|
2209 | 2210 | * console.log("The loading indicator is now displayed");
|
2210 | 2211 | * });
|
@@ -2659,7 +2660,9 @@ function($rootScope, $ionicBody, $compile, $timeout, $ionicPlatform, $ionicTempl
|
2659 | 2660 | }
|
2660 | 2661 |
|
2661 | 2662 | return $timeout(function() {
|
2662 |
| - $ionicBody.removeClass(self.viewType + '-open'); |
| 2663 | + if (!modalStack.length) { |
| 2664 | + $ionicBody.removeClass(self.viewType + '-open'); |
| 2665 | + } |
2663 | 2666 | self.el.classList.add('hide');
|
2664 | 2667 | }, self.hideDelay || 320);
|
2665 | 2668 | },
|
@@ -3014,8 +3017,8 @@ IonicModule
|
3014 | 3017 | * @description
|
3015 | 3018 | * Add Cordova event listeners, such as `pause`, `resume`, `volumedownbutton`, `batterylow`,
|
3016 | 3019 | * `offline`, etc. More information about available event types can be found in
|
3017 |
| - * [Cordova's event documentation](https://cordova.apache.org/docs/en/edge/cordova_events_events.md.html#Events). |
3018 |
| - * @param {string} type Cordova [event type](https://cordova.apache.org/docs/en/edge/cordova_events_events.md.html#Events). |
| 3020 | + * [Cordova's event documentation](https://cordova.apache.org/docs/en/latest/cordova/events/events.html). |
| 3021 | + * @param {string} type Cordova [event type](https://cordova.apache.org/docs/en/latest/cordova/events/events.html). |
3019 | 3022 | * @param {function} callback Called when the Cordova event is fired.
|
3020 | 3023 | * @returns {function} Returns a deregistration function to remove the event listener.
|
3021 | 3024 | */
|
@@ -3126,7 +3129,7 @@ IonicModule
|
3126 | 3129 | * $scope.$on('$destroy', function() {
|
3127 | 3130 | * $scope.popover.remove();
|
3128 | 3131 | * });
|
3129 |
| - * // Execute action on hide popover |
| 3132 | + * // Execute action on hidden popover |
3130 | 3133 | * $scope.$on('popover.hidden', function() {
|
3131 | 3134 | * // Execute action
|
3132 | 3135 | * });
|
@@ -7769,20 +7772,15 @@ function($scope, $attrs, $ionicSideMenuDelegate, $ionicPlatform, $ionicBody, $io
|
7769 | 7772 |
|
7770 | 7773 | self.content.setTranslateX(amount);
|
7771 | 7774 |
|
7772 |
| - if (amount >= 0) { |
7773 |
| - leftShowing = true; |
7774 |
| - rightShowing = false; |
| 7775 | + leftShowing = amount > 0; |
| 7776 | + rightShowing = amount < 0; |
7775 | 7777 |
|
7776 |
| - if (amount > 0) { |
7777 |
| - // Push the z-index of the right menu down |
7778 |
| - self.right && self.right.pushDown && self.right.pushDown(); |
7779 |
| - // Bring the z-index of the left menu up |
7780 |
| - self.left && self.left.bringUp && self.left.bringUp(); |
7781 |
| - } |
| 7778 | + if (amount > 0) { |
| 7779 | + // Push the z-index of the right menu down |
| 7780 | + self.right && self.right.pushDown && self.right.pushDown(); |
| 7781 | + // Bring the z-index of the left menu up |
| 7782 | + self.left && self.left.bringUp && self.left.bringUp(); |
7782 | 7783 | } else {
|
7783 |
| - rightShowing = true; |
7784 |
| - leftShowing = false; |
7785 |
| - |
7786 | 7784 | // Bring the z-index of the right menu up
|
7787 | 7785 | self.right && self.right.bringUp && self.right.bringUp();
|
7788 | 7786 | // Push the z-index of the left menu down
|
@@ -11780,7 +11778,6 @@ IonicModule
|
11780 | 11778 | * @param {boolean=} no-tap-scroll By default, the navbar will scroll the content
|
11781 | 11779 | * to the top when tapped. Set no-tap-scroll to true to disable this behavior.
|
11782 | 11780 | *
|
11783 |
| - * </table><br/> |
11784 | 11781 | */
|
11785 | 11782 | IonicModule
|
11786 | 11783 | .directive('ionNavBar', function() {
|
@@ -12499,7 +12496,9 @@ IonicModule
|
12499 | 12496 |
|
12500 | 12497 | $scope.$on('scroll.refreshComplete', function() {
|
12501 | 12498 | $scope.$evalAsync(function() {
|
12502 |
| - scrollCtrl.scrollView.finishPullToRefresh(); |
| 12499 | + if(scrollCtrl.scrollView){ |
| 12500 | + scrollCtrl.scrollView.finishPullToRefresh(); |
| 12501 | + } |
12503 | 12502 | });
|
12504 | 12503 | });
|
12505 | 12504 | }
|
@@ -12541,6 +12540,7 @@ IonicModule
|
12541 | 12540 | * @param {boolean=} paging Whether to scroll with paging.
|
12542 | 12541 | * @param {expression=} on-refresh Called on pull-to-refresh, triggered by an {@link ionic.directive:ionRefresher}.
|
12543 | 12542 | * @param {expression=} on-scroll Called whenever the user scrolls.
|
| 12543 | + * @param {expression=} on-scroll-complete Called whenever the scrolling paging is completed. |
12544 | 12544 | * @param {boolean=} scrollbar-x Whether to show the horizontal scrollbar. Default true.
|
12545 | 12545 | * @param {boolean=} scrollbar-y Whether to show the vertical scrollbar. Default true.
|
12546 | 12546 | * @param {boolean=} zooming Whether to support pinch-to-zoom
|
@@ -12576,6 +12576,7 @@ function($timeout, $controller, $ionicBind, $ionicConfig) {
|
12576 | 12576 | direction: '@',
|
12577 | 12577 | paging: '@',
|
12578 | 12578 | $onScroll: '&onScroll',
|
| 12579 | + $onScrollComplete: '&onScrollComplete', |
12579 | 12580 | scroll: '@',
|
12580 | 12581 | scrollbarX: '@',
|
12581 | 12582 | scrollbarY: '@',
|
@@ -12617,18 +12618,26 @@ function($timeout, $controller, $ionicBind, $ionicConfig) {
|
12617 | 12618 | maxZoom: $scope.$eval($scope.maxZoom) || 3,
|
12618 | 12619 | minZoom: $scope.$eval($scope.minZoom) || 0.5,
|
12619 | 12620 | preventDefault: true,
|
12620 |
| - nativeScrolling: nativeScrolling |
| 12621 | + nativeScrolling: nativeScrolling, |
| 12622 | + scrollingComplete: onScrollComplete |
12621 | 12623 | };
|
12622 | 12624 |
|
12623 | 12625 | if (isPaging) {
|
12624 | 12626 | scrollViewOptions.speedMultiplier = 0.8;
|
12625 | 12627 | scrollViewOptions.bouncing = false;
|
12626 | 12628 | }
|
12627 | 12629 |
|
12628 |
| - $controller('$ionicScroll', { |
| 12630 | + var scrollCtrl = $controller('$ionicScroll', { |
12629 | 12631 | $scope: $scope,
|
12630 | 12632 | scrollViewOptions: scrollViewOptions
|
12631 | 12633 | });
|
| 12634 | + |
| 12635 | + function onScrollComplete() { |
| 12636 | + $scope.$onScrollComplete && $scope.$onScrollComplete({ |
| 12637 | + scrollTop: scrollCtrl.scrollView.__scrollTop, |
| 12638 | + scrollLeft: scrollCtrl.scrollView.__scrollLeft |
| 12639 | + }); |
| 12640 | + } |
12632 | 12641 | }
|
12633 | 12642 | }
|
12634 | 12643 | };
|
@@ -13332,8 +13341,8 @@ function($animate, $timeout, $compile, $ionicSlideBoxDelegate, $ionicHistory, $i
|
13332 | 13341 | *
|
13333 | 13342 | * $scope.$on("$ionicSlides.slideChangeEnd", function(event, data){
|
13334 | 13343 | * // note: the indexes are 0-based
|
13335 |
| - * $scope.activeIndex = data.activeIndex; |
13336 |
| - * $scope.previousIndex = data.previousIndex; |
| 13344 | + * $scope.activeIndex = data.slider.activeIndex; |
| 13345 | + * $scope.previousIndex = data.slider.previousIndex; |
13337 | 13346 | * });
|
13338 | 13347 | *
|
13339 | 13348 | * ```
|
|
0 commit comments