Commit ca6a6f98 authored by Vladislav Rykov's avatar Vladislav Rykov
Browse files

ajax api (post,get)<->(POST,GET)

parent 741f3a7b
......@@ -68,7 +68,7 @@
function remove_alert(id, devid) {
$.ajax({
url:"/administration/{{ user }}/application/{{ app[1] }}/delete-alert?id="+id+"&devid="+devid,
type:"get",
type:"GET",
success: function() {
location.reload();
}
......
......@@ -65,7 +65,7 @@
function remove_automation(id, devid) {
$.ajax({
url:"/administration/{{ user }}/application/{{ app[1] }}/delete-automation?id="+id+"&devid="+devid,
type:"get",
type:"GET",
success: function() {
location.reload();
}
......
......@@ -93,7 +93,7 @@
function onsub() {
$.ajax({
url:"/administration/{{ user }}/application/{{ app[1] }}/device/{{ dev[1] }}/configure",
type:"post",
type:"POST",
data:$("#confform").serialize(),
success: function() {
location.reload();
......@@ -103,7 +103,7 @@
function remove_configuration(b64) {
$.ajax({
url:"/administration/{{ user }}/application/{{ app[1] }}/device/{{ dev[1] }}/remove-configuration?conf="+b64,
type:"get",
type:"GET",
success: function() {
location.reload();
}
......
......@@ -62,7 +62,7 @@
function remove_alert(id, devid) {
$.ajax({
url:"/application/{{ app[1] }}/delete-alert?id="+id+"&devid="+devid,
type:"get",
type:"GET",
success: function() {
location.reload();
}
......
......@@ -59,7 +59,7 @@
function remove_automation(id, devid) {
$.ajax({
url:"/application/{{ app[1] }}/delete-automation?id="+id+"&devid="+devid,
type:"get",
type:"GET",
success: function() {
location.reload();
}
......
......@@ -86,7 +86,7 @@
function onsub() {
$.ajax({
url:"/application/{{ app[1] }}/device/{{ dev[1] }}/configure",
type:"post",
type:"POST",
data:$("#confform").serialize(),
success: function() {
location.reload();
......@@ -96,7 +96,7 @@
function remove_configuration(b64) {
$.ajax({
url:"/application/{{ app[1] }}/device/{{ dev[1] }}/remove-configuration?conf="+b64,
type:"get",
type:"GET",
success: function() {
location.reload();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment