summaryrefslogtreecommitdiff
path: root/www/js/app.js
diff options
context:
space:
mode:
authorpliablepixels <pliablepixels@gmail.com>2016-04-10 10:47:35 -0400
committerpliablepixels <pliablepixels@gmail.com>2016-04-10 10:47:35 -0400
commita29f9a676a6ea3bad56ede05cd1a1c82ffbbe8e9 (patch)
tree7e6e6bfb23390a64344fdfe2272a5da04c2dd97c /www/js/app.js
parent42bc21f7d0b4acfeefa5f4c2708203be78f57778 (diff)
#219 - everything upgraded
Former-commit-id: 15f58d10df83feda8199a1b904433e625ef36b44
Diffstat (limited to 'www/js/app.js')
-rw-r--r--www/js/app.js9
1 files changed, 5 insertions, 4 deletions
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', {