Skip to content

Commit

Permalink
reload event page on language change
Browse files Browse the repository at this point in the history
Former-commit-id: b9e49939cf3178fa4f5938efc336236a49abf724
  • Loading branch information
pliablepixels committed Oct 13, 2016
1 parent 6860561 commit 3adb67a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions www/js/EventCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ angular.module('zmApp.controllers')
// initial code
//---------------------------------------------------


$rootScope.$on("language-changed", function () {
NVRDataModel.log(">>>>>>>>>>>>>>> language changed");
doRefresh();
});

$scope.$on('$ionicView.afterEnter', function () {
//console.log ("********* AFTER ENTER");
Expand Down
2 changes: 2 additions & 0 deletions www/js/MenuController.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ $scope.openMenu = function () {
onTap: function (e) {
NVRDataModel.log("Language selected:"+$scope.myopt.lang);
NVRDataModel.setDefaultLanguage($scope.myopt.lang, true);
$rootScope.$emit('language-changed');


//return "OK";

Expand Down

0 comments on commit 3adb67a

Please sign in to comment.