From bea23aa380b95e7cadb6d95cba867fc08a344481 Mon Sep 17 00:00:00 2001 From: pliablepixels Date: Mon, 8 Feb 2016 14:21:56 -0500 Subject: nits Former-commit-id: 8ba60cf9cc46727dbe207bd163eec53a2c30547c --- www/index.html | 6 +++--- www/js/HelpCtrl.js | 4 +++- www/js/MontageHistoryCtrl.js | 2 +- www/js/app.js | 18 +++++++++++++++++- www/templates/help.html | 24 ++++++++++++++++-------- www/templates/montage.html | 12 ++++++------ 6 files changed, 46 insertions(+), 20 deletions(-) (limited to 'www') diff --git a/www/index.html b/www/index.html index 654e9378..1cafc86f 100644 --- a/www/index.html +++ b/www/index.html @@ -27,6 +27,7 @@ + @@ -100,11 +101,12 @@ + - + @@ -121,8 +123,6 @@ - - diff --git a/www/js/HelpCtrl.js b/www/js/HelpCtrl.js index b7cad31a..85a7e45e 100644 --- a/www/js/HelpCtrl.js +++ b/www/js/HelpCtrl.js @@ -1,6 +1,6 @@ /* jshint -W041 */ /* jslint browser: true*/ -/* global cordova,StatusBar,angular,console */ +/* global cordova,StatusBar,angular,console, Masonry */ angular.module('zmApp.controllers').controller('zmApp.HelpCtrl', ['$scope', '$rootScope', '$ionicModal', 'ZMDataModel','$ionicSideMenuDelegate', '$ionicHistory', '$state', function ($scope, $rootScope, $ionicModal, ZMDataModel,$ionicSideMenuDelegate, $ionicHistory, $state) { $scope.openMenu = function () { @@ -34,6 +34,8 @@ $scope.openMenu = function () { console.log("**VIEW ** Help Ctrl Entered"); ZMDataModel.setAwake(false); + + }); }]); diff --git a/www/js/MontageHistoryCtrl.js b/www/js/MontageHistoryCtrl.js index 31a932c9..11f47063 100644 --- a/www/js/MontageHistoryCtrl.js +++ b/www/js/MontageHistoryCtrl.js @@ -396,7 +396,7 @@ angular.module('zmApp.controllers').controller('zmApp.MontageHistoryCtrl', ['$sc $scope.MontageMonitors[ndx].eventUrlTime=data.event.Event.StartTime; $scope.MontageMonitors[ndx].eventUrl=ld.streamingurl+"/nph-zms?source=event&mode=jpeg&event="+data.event.Event.Id+"&frame=1&replay="+($scope.sliderVal.enableGapless?"gapless":"single"); - },300); + },700); } diff --git a/www/js/app.js b/www/js/app.js index 6f9f7e34..216441d9 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -334,6 +334,12 @@ angular.module('zmApp', [ if (zmCookie) { config.headers.Cookie = "ZMSESSID=" + zmCookie; } + + else + { + // console.log ("No cookie present in " + config.url); + } + if ((config.url.indexOf("/api/states/change/") > -1) || (config.url.indexOf("getDiskPercent.json") > -1) || (config.url.indexOf("daemonCheck.json") > -1) || @@ -358,7 +364,8 @@ angular.module('zmApp', [ if (zmSess) { if (zmSess[1]) { - + + // console.log ("***** SETTING COOKIE TO " + zmCookie); zmCookie = zmSess[1]; } } @@ -596,13 +603,20 @@ angular.module('zmApp', [ title: 'reCaptcha enabled', template: 'Looks like you have enabled reCaptcha. It needs to be turned off for zmNinja to work' }); + + // close it after 5 seconds $timeout(function () { alertPopup.close(); }, 5000); + + d.reject ("Error-disable recaptcha"); + return (d.promise); } + + }); @@ -662,9 +676,11 @@ angular.module('zmApp', [ $rootScope.$emit('auth-error', "incorrect credentials"); d.reject("Login Error"); + return (d.promise); } // Now go ahead and re-get auth key + // if login was a success $rootScope.authSession = "undefined"; var ld = ZMDataModel.getLogin(); ZMDataModel.getAuthKey($rootScope.validMonitorId) diff --git a/www/templates/help.html b/www/templates/help.html index 9621ca9b..12a185f2 100644 --- a/www/templates/help.html +++ b/www/templates/help.html @@ -2,15 +2,17 @@ - + - + + +
- +

Is there an official FAQ?

There sure is. Always check here for the most updated help
@@ -19,9 +21,15 @@

What do I enter for ZM Portal URL, Base path to cgi-bin and ZM API URL?

    -
  • ZM Portal URL: The URL using which you can access ZM

    (example http://myserver.ddns.net/zm)

  • -
  • CGI path: The URL using which your cgi-bin path is accessible

    (example http://myserver.ddns.net/zm/cgi-bin).

  • -
  • API Url: The URL using which your API path is accessible

    (example:http://myserver.ddns.net/zm/api)

  • +
  • ZM Portal URL: The URL using which you can access ZM +

    (example http://myserver.ddns.net/zm)

    +
  • +
  • CGI path: The URL using which your cgi-bin path is accessible +

    (example http://myserver.ddns.net/zm/cgi-bin).

    +
  • +
  • API Url: The URL using which your API path is accessible +

    (example:http://myserver.ddns.net/zm/api)

    +
@@ -34,7 +42,7 @@

I do not have authentication enabled but the app keeps asking me to specify authentication

If you don't use ZM authentication, just enter an "x" in both user name and password. - +

Everything works! but live streaming does not

Check if streaming works in the web interface. If it does not work, zmNinja won't work either. Fix ZM first. If streaming in ZM works, go to zmNinja settings and fix your cgi-bin path. the automatic path that is filled in won't work. Here is a hint, go to zoneminder->options->paths and check the value of the cgi-bin path - your zmNinja path will be "base path of your server" + cgi-bin path.
@@ -87,4 +95,4 @@ - + \ No newline at end of file diff --git a/www/templates/montage.html b/www/templates/montage.html index 5c14fa88..1737e0d7 100644 --- a/www/templates/montage.html +++ b/www/templates/montage.html @@ -31,7 +31,7 @@ - +
@@ -41,9 +41,9 @@
- - - + + +
@@ -97,7 +97,7 @@
-
@@ -106,7 +106,7 @@
- + -- cgit v1.2.3