From 65869bd131cc2f05a09a0a0ca360f4c514828116 Mon Sep 17 00:00:00 2001 From: pliablepixels Date: Tue, 3 May 2016 20:21:19 -0400 Subject: #237 and #238 -- updating push plugin to use new methods, still have work to do Former-commit-id: 4b0705c76abe7079bf149b18ac148264db944a88 --- www/js/EventServerSettingsCtrl.js | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) (limited to 'www/js/EventServerSettingsCtrl.js') diff --git a/www/js/EventServerSettingsCtrl.js b/www/js/EventServerSettingsCtrl.js index fbde9f9b..e2456c2b 100644 --- a/www/js/EventServerSettingsCtrl.js +++ b/www/js/EventServerSettingsCtrl.js @@ -69,34 +69,25 @@ angular.module('zmApp.controllers').controller('zmApp.EventServerSettingsCtrl', buttons: [ { text: 'Cancel', - onTap: function (e) { - return "CANCEL"; - } + }, { text: 'OK', onTap: function (e) { - return "OK"; + + ld.onTapScreen = $scope.myopt.selectedState; + ZMDataModel.zmLog("Setting new onTap State:"+ld.onTapScreen); + ZMDataModel.setLogin(ld); + $scope.defScreen = $scope.myopt.selectedState; + } } ] }); - // It seems invoking a popup within a popup handler - // causes issues. Doing this outside due to that reason - $rootScope.zmPopup.then(function (res) { - - if (res == "OK") { - ld.onTapScreen = $scope.myopt.selectedState; - ZMDataModel.zmDebug("Setting new onTap State:"); - ZMDataModel.setLogin(ld); - $scope.defScreen = $scope.myopt.selectedState; - // if ($scope.myopt.selectedState != "") - // controlZM($scope.myopt.selectedState); - } - }); + }; //---------------------------------------------------------------- -- cgit v1.2.3