diff options
Diffstat (limited to 'www/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(); |
