diff options
Diffstat (limited to 'www/js/WizardCtrl.js')
| -rw-r--r-- | www/js/WizardCtrl.js | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/www/js/WizardCtrl.js b/www/js/WizardCtrl.js index 8dacfee7..d1bd9da9 100644 --- a/www/js/WizardCtrl.js +++ b/www/js/WizardCtrl.js @@ -9,6 +9,10 @@ $scope.openMenu = function () { + + //-------------------------------------------------------------------------- + // tags a protocol + //-------------------------------------------------------------------------- function addhttp(url) { if ((!/^(f|ht)tps?:\/\//i.test(url)) && (url != "")) { @@ -17,16 +21,10 @@ $scope.openMenu = function () { return url; } - function validURL(url) - { - if (!url) - - return ({status:false, code:"URL cannot be empty"}); - url = addhttp(url); - return ({status:true, code:""}); - - } + //-------------------------------------------------------------------------- + // exit validator for auth wizard + //-------------------------------------------------------------------------- $scope.exitAuth = function() { @@ -75,6 +73,10 @@ $scope.openMenu = function () { }; + //-------------------------------------------------------------------------- + // validator for portal url wizard + //-------------------------------------------------------------------------- + $scope.exitPortal = function() { ZMDataModel.zmLog ("Wizard: validating portal url syntax"); @@ -125,6 +127,9 @@ $scope.openMenu = function () { return true; }; + //-------------------------------------------------------------------------- + // part of auth wizard - toggles display of auth components + //-------------------------------------------------------------------------- $scope.toggleAuth = function() { $scope.wizard.useauth = !$scope.wizard.useauth; @@ -136,6 +141,9 @@ $scope.openMenu = function () { }; + //-------------------------------------------------------------------------- + // global tip toggler for all wizard steps + //-------------------------------------------------------------------------- $scope.toggleTip = function() { $scope.wizard.tipshow = !$scope.wizard.tipshow; @@ -146,7 +154,10 @@ $scope.openMenu = function () { }; - $scope.$on('$ionicView.enter', function () { + //-------------------------------------------------------------------------- + // initial + //-------------------------------------------------------------------------- + $scope.$on('$ionicView.beforeEnter', function () { //console.log("**VIEW ** Help Ctrl Entered"); $scope.wizard = { |
