summaryrefslogtreecommitdiff
path: root/www/js/WizardCtrl.js
diff options
context:
space:
mode:
authorpliablepixels <pliablepixels@gmail.com>2016-04-30 14:48:16 -0400
committerpliablepixels <pliablepixels@gmail.com>2016-04-30 14:48:16 -0400
commit05557c644c57d3cb52609d7f97af23bbdbebe406 (patch)
treebf81caf6b1692f839babb1d7866082785946b139 /www/js/WizardCtrl.js
parentc59f45bf14e7915feca4e0303e204e33ef83998e (diff)
#234 - some comments added
Former-commit-id: 2d29f99afe2459d29fbeeab1bd89371c4535ed2f
Diffstat (limited to 'www/js/WizardCtrl.js')
-rw-r--r--www/js/WizardCtrl.js31
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 = {