summaryrefslogtreecommitdiff
path: root/www/js/EventCtrl.js
diff options
context:
space:
mode:
authorARC <arjunrc@gmail.com>2015-05-12 16:21:03 -0400
committerARC <arjunrc@gmail.com>2015-05-12 16:21:03 -0400
commit1d89f4873a603392fb16096b3816b6b232b38a63 (patch)
treef7544c00478e6e0c22c5c93d0695f67662ce10bd /www/js/EventCtrl.js
parentb2367f35e32fad3f2383b9e124df87211f669b59 (diff)
Added ZM state control - start/stop/restart
Diffstat (limited to 'www/js/EventCtrl.js')
-rw-r--r--www/js/EventCtrl.js6
1 files changed, 3 insertions, 3 deletions
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': '*/*',