From 1d89f4873a603392fb16096b3816b6b232b38a63 Mon Sep 17 00:00:00 2001 From: ARC Date: Tue, 12 May 2015 16:21:03 -0400 Subject: Added ZM state control - start/stop/restart --- www/js/EventCtrl.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'www/js/EventCtrl.js') diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index a3955a76..ab25c0a7 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -128,18 +128,18 @@ angular.module('zmApp.controllers').controller('zmApp.EventCtrl', ['$ionicPlatfo break; } - console.log("** POST URL " + loginData.url + 'zm/index.php'); + // You need to POST commands to control zms // Note that I am url encoding the parameters into the URL // If I leave it as JSON, it gets converted to OPTONS due // to CORS behaviour and ZM/Apache don't seem to handle it - console.log ("POST: "+loginData.url +'/'+ loginData.alias+'/index.php'); + console.log ("POST: "+loginData.url +'/index.php'); var req = $http({ method: 'POST', /*timeout: 15000,*/ - url: loginData.url +'/'+ loginData.alias+'/index.php', + url: loginData.url +'/index.php', headers: { 'Content-Type': 'application/x-www-form-urlencoded', //'Accept': '*/*', -- cgit v1.2.3