From ca9d64b313a4638d665e08e6d6c79c5b2538601d Mon Sep 17 00:00:00 2001 From: PliablePixels Date: Wed, 15 Jul 2015 21:03:42 -0400 Subject: Updated with functionality to save feed snapshots to camera roll --- www/js/LoginCtrl.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'www/js/LoginCtrl.js') diff --git a/www/js/LoginCtrl.js b/www/js/LoginCtrl.js index 86da2e06..05631b1d 100644 --- a/www/js/LoginCtrl.js +++ b/www/js/LoginCtrl.js @@ -2,7 +2,7 @@ /* jslint browser: true*/ /* global cordova,StatusBar,angular,console */ -angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', ['$scope', '$rootScope', '$ionicModal', 'ZMDataModel', '$ionicSideMenuDelegate', '$ionicPopup', '$http', '$q', '$ionicLoading', function ($scope, $rootScope, $ionicModal, ZMDataModel, $ionicSideMenuDelegate, $ionicPopup, $http, $q, $ionicLoading) { +angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', ['$scope', '$rootScope','zm', '$ionicModal', 'ZMDataModel', '$ionicSideMenuDelegate', '$ionicPopup', '$http', '$q', '$ionicLoading', function ($scope, $rootScope,zm, $ionicModal, ZMDataModel, $ionicSideMenuDelegate, $ionicPopup, $http, $q, $ionicLoading) { $scope.openMenu = function () { $ionicSideMenuDelegate.toggleLeft(); }; @@ -60,7 +60,7 @@ function addhttp(url) { $scope.save = function () { console.log('Saving login'); - if (parseInt($scope.loginData.maxMontage) > 10) { + if (parseInt($scope.loginData.maxMontage) > zm.safeMontageLimit) { $ionicPopup.alert({ title: 'Note', template: 'You have selected to view more than 10 monitors in the Montage screen. Note that this is very resource intensive and may load the server or cause issues in the application. If you are not sure, please consider limiting this value to 10' @@ -142,7 +142,7 @@ function addhttp(url) { template: 'Checking data...', animation: 'fade-in', showBackdrop: true, - duration: 15000, + duration: zm.loadingTimeout, maxWidth: 200, showDelay: 0 }); -- cgit v1.2.3