summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xwww/js/app.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/www/js/app.js b/www/js/app.js
index 871ed7dd..3745e186 100755
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -114,6 +114,14 @@ angular.module('zmApp', [
})
+ // to take care of electron changing
+ // window title and going out of sync
+ .controller('zmApp.appCtrl', function ($scope) {
+ $scope.$on('$ionicView.afterEnter', function(ev, data) {
+ ev.stopPropagation();
+ });
+ })
+
//http://stackoverflow.com/a/24519069/1361529
.filter('trusted', ['$sce', function ($sce) {
return function (url) {
@@ -2170,12 +2178,14 @@ angular.module('zmApp', [
url: '/app',
abstract: true,
templateUrl: 'templates/menu.html',
-
+ controller: 'zmApp.appCtrl',
cache: false,
//controller: 'AppCtrl'
})
+
+
.state('app.login', {
data: {
requireLogin: false