summaryrefslogtreecommitdiff
path: root/www/js/EventServerSettingsCtrl.js
diff options
context:
space:
mode:
authorpliablepixels <pliablepixels@gmail.com>2016-05-03 20:21:19 -0400
committerpliablepixels <pliablepixels@gmail.com>2016-05-03 20:21:19 -0400
commit65869bd131cc2f05a09a0a0ca360f4c514828116 (patch)
treecfc5ec05b1e907360870814270188c7ea9da25d5 /www/js/EventServerSettingsCtrl.js
parent332fcc3602d3ddcceea7410926f889377b74addd (diff)
#237 and #238 -- updating push plugin to use new methods, still have work to do
Former-commit-id: 4b0705c76abe7079bf149b18ac148264db944a88
Diffstat (limited to 'www/js/EventServerSettingsCtrl.js')
-rw-r--r--www/js/EventServerSettingsCtrl.js25
1 files changed, 8 insertions, 17 deletions
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);
- }
- });
+
};
//----------------------------------------------------------------