diff options
| author | PliablePixels <pliablepixels@gmail.com> | 2015-07-02 16:09:38 -0400 |
|---|---|---|
| committer | PliablePixels <pliablepixels@gmail.com> | 2015-07-02 16:09:38 -0400 |
| commit | a33062f255ed05a76d831648e7ef28e56e4185d3 (patch) | |
| tree | 6bb9d0fbabf2761b37d3d9534b82fbe20c00cdde /www/js/LoginCtrl.js | |
| parent | f112345add03c42bf18d6a1e9533efe455d11b11 (diff) | |
made it easier to figure out what all the fields are in the settings screen
Diffstat (limited to 'www/js/LoginCtrl.js')
| -rw-r--r-- | www/js/LoginCtrl.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/www/js/LoginCtrl.js b/www/js/LoginCtrl.js index 7541000e..c4192927 100644 --- a/www/js/LoginCtrl.js +++ b/www/js/LoginCtrl.js @@ -28,7 +28,8 @@ angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', ['$scope', '$r // http://stackoverflow.com/questions/11300906/check-if-a-string-starts-with-http-using-javascript //------------------------------------------------------------------------------- function addhttp(url) { - if (!/^(f|ht)tps?:\/\//i.test(url)) { + + if ((!/^(f|ht)tps?:\/\//i.test(url)) && (url !="") ) { url = "http://" + url; } return url; @@ -135,7 +136,11 @@ function addhttp(url) { ]).then( function (results) { $ionicLoading.hide(); - //alert("All good"); + $ionicPopup.alert({ + title: 'Settings Saved', + template: 'Please explore the menu and enjoy zmNinja!' + }).then(function(res) { $ionicSideMenuDelegate.toggleLeft();}); + }, function (error) { $ionicLoading.hide(); |
