From a29f9a676a6ea3bad56ede05cd1a1c82ffbbe8e9 Mon Sep 17 00:00:00 2001 From: pliablepixels Date: Sun, 10 Apr 2016 10:47:35 -0400 Subject: #219 - everything upgraded Former-commit-id: 15f58d10df83feda8199a1b904433e625ef36b44 --- www/js/app.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'www/js/app.js') diff --git a/www/js/app.js b/www/js/app.js index ab4432c4..603c4867 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -134,17 +134,17 @@ angular.module('zmApp', [ //------------------------------------------------------------------ // switch between collection repeat or ng-repeat //------------------------------------------------------------------- -.directive('repeat', function ($compile, $rootScope) { +.directive('repeatsmart', function ($compile, $rootScope) { return { restrict: 'A', priority: 2000, terminal: true, link: function (scope, element) { var repeatDirective = ($rootScope.platformOS == 'desktop') ? 'ng-repeat' : 'collection-repeat'; - //console.log ("*********** REPEAT SCROLL IS " + repeatDirective); + console.log ("*********** REPEAT SCROLL IS " + repeatDirective); - element.attr(repeatDirective, element.attr('repeat')); - element.removeAttr('repeat'); + element.attr(repeatDirective, element.attr('repeatsmart')); + element.removeAttr('repeatsmart'); $compile(element)(scope); } }; @@ -1383,6 +1383,7 @@ angular.module('zmApp', [ //$httpProvider.defaults.withCredentials = true; $httpProvider.interceptors.push('timeoutHttpIntercept'); $ionicConfigProvider.navBar.alignTitle('center'); + //$ionicConfigProvider.scrolling.jsScrolling(false); $stateProvider .state('app', { -- cgit v1.2.3