diff options
| author | PliablePixels <pliablepixels@gmail.com> | 2015-07-03 08:31:50 -0400 |
|---|---|---|
| committer | PliablePixels <pliablepixels@gmail.com> | 2015-07-03 08:31:50 -0400 |
| commit | 15f501727a91bc4fdf2c155d572cf00c11436eef (patch) | |
| tree | 99ee1ab9521b1c8dea248ac5c812d4c892fa2be6 /www/js/StateCtrl.js | |
| parent | 23059464e369b109d8826e472913fa2e4ad9c618 (diff) | |
made sure restart does not occur if no custom state is selected
Diffstat (limited to 'www/js/StateCtrl.js')
| -rw-r--r-- | www/js/StateCtrl.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/www/js/StateCtrl.js b/www/js/StateCtrl.js index 99f693e6..f1d15ed1 100644 --- a/www/js/StateCtrl.js +++ b/www/js/StateCtrl.js @@ -100,7 +100,8 @@ angular.module('zmApp.controllers').controller('zmApp.StateCtrl', ['$ionicPopup' { text: 'OK', onTap: function (e) { - controlZM($scope.myopt.selectedState); + if ($scope.myopt.selectedState != "") + controlZM($scope.myopt.selectedState); } } ] |
