Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Vladislav Rykov
THSO.server
Commits
ca6a6f98
Commit
ca6a6f98
authored
Jun 09, 2020
by
Vladislav Rykov
Browse files
ajax api (post,get)<->(POST,GET)
parent
741f3a7b
Changes
6
Hide whitespace changes
Inline
Side-by-side
app/app/templates/new/admin/user-application-alerts.html
View file @
ca6a6f98
...
...
@@ -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
();
}
...
...
app/app/templates/new/admin/user-application-automation.html
View file @
ca6a6f98
...
...
@@ -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
();
}
...
...
app/app/templates/new/admin/user-application-device-configuration.html
View file @
ca6a6f98
...
...
@@ -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
();
}
...
...
app/app/templates/new/public/alerts.html
View file @
ca6a6f98
...
...
@@ -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
();
}
...
...
app/app/templates/new/public/automation.html
View file @
ca6a6f98
...
...
@@ -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
();
}
...
...
app/app/templates/new/public/device-configuration.html
View file @
ca6a6f98
...
...
@@ -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
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment