From a33062f255ed05a76d831648e7ef28e56e4185d3 Mon Sep 17 00:00:00 2001 From: PliablePixels Date: Thu, 2 Jul 2015 16:09:38 -0400 Subject: made it easier to figure out what all the fields are in the settings screen --- www/js/LoginCtrl.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'www/js') 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(); -- cgit v1.2.3