diff options
| author | ARC <arjunrc@gmail.com> | 2015-04-29 21:54:40 -0400 |
|---|---|---|
| committer | ARC <arjunrc@gmail.com> | 2015-04-29 21:54:40 -0400 |
| commit | bcdc2629d7b289c48776169c350d8da3b74f64d4 (patch) | |
| tree | 2d6c08536a6bd25e302a7021172bfe964ecb0903 /www/js/EventCtrl.js | |
| parent | eabc4988d8627690a0a1111a9a163cbe03692bca (diff) | |
I think I've solved the blank screen issue. I've created an app directive that is triggered on imageonload - that hides an ionic loading. When I first show the modal, I display a "please wait". Timeout of 15 second it goes away. Need to test more, but I think this mostly works
Diffstat (limited to 'www/js/EventCtrl.js')
| -rw-r--r-- | www/js/EventCtrl.js | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index 283ffa39..fadc9f65 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -56,6 +56,21 @@ angular.module('zmApp.controllers').controller('zmApp.EventCtrl', function ($ion play: "2" } + $scope.initLoadingImage = function() + { + console.log ("***Loading***"); + /* $ionicLoading.show({ + template: "loading, please wait...", + noBackdrop: true, + });*/ + } + + + $scope.finishedLoadingImage = function() + { + $ionicLoading.hide(); + // alert ("IMAGE LOADED"); + } $scope.eventCommands = eventCommands; @@ -168,10 +183,18 @@ angular.module('zmApp.controllers').controller('zmApp.EventCtrl', function ($ion }) .then(function (modal) { $scope.modal = modal; + + $ionicLoading.show({ + template: "please wait...", + noBackdrop: true, + duration:10000 + }) $scope.modal.show(); - }); - }; + }) + } + + $scope.closeModal = function () { console.log("Close & Destroy Modal"); $scope.modal.remove(); |
