summaryrefslogtreecommitdiff
path: root/www/js/LoginCtrl.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/LoginCtrl.js')
-rw-r--r--www/js/LoginCtrl.js17
1 files changed, 16 insertions, 1 deletions
diff --git a/www/js/LoginCtrl.js b/www/js/LoginCtrl.js
index 1199d78a..27673c54 100644
--- a/www/js/LoginCtrl.js
+++ b/www/js/LoginCtrl.js
@@ -176,6 +176,8 @@ angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', ['$scope', '$r
function saveItems()
{
+
+
console.log('Saving login');
ZMDataModel.setFirstUse(false);
@@ -324,7 +326,20 @@ angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', ['$scope', '$r
}
$scope.saveItems = function () {
- saveItems();
+
+ if (!$scope.loginData.serverName)
+ {
+ $ionicPopup.alert({
+ title:'Error',
+ template: 'Server Name cannot be empty',
+ })
+ .then(function(res)
+ {return;});
+ }
+ else
+ {
+ saveItems();
+ }
};