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 +++++++-- www/templates/login.html | 25 +++++++++++++++---------- 2 files changed, 22 insertions(+), 12 deletions(-) (limited to 'www') 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(); diff --git a/www/templates/login.html b/www/templates/login.html index 5c2eff64..a9fc6ac9 100644 --- a/www/templates/login.html +++ b/www/templates/login.html @@ -8,22 +8,27 @@
ZoneMinder Settings -