Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/apporder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJulius Haertl <jus@bitgrid.net>2016-12-06 00:58:34 +0300
committerJulius Haertl <jus@bitgrid.net>2016-12-06 00:58:34 +0300
commite993c82705b5b302026a33819700e83e341383c0 (patch)
treee627decad88e232dada4b795d8f654f8ad858cf1 /js
parent36bfc9628d7a0d30f270c8a1437cfc4f9b06568c (diff)
Move endpoints and remove double requesttoken
Diffstat (limited to 'js')
-rw-r--r--js/apporder.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/js/apporder.js b/js/apporder.js
index ae2e2c1..90dfba8 100644
--- a/js/apporder.js
+++ b/js/apporder.js
@@ -7,7 +7,7 @@ $(function () {
app_menu.hide();
// restore existing order
- $.get(OC.filePath('apporder', 'ajax', 'order.php'), {requesttoken: oc_requesttoken}, function (data) {
+ $.get(OC.generateUrl('/apps/apporder/getOrder'), function (data) {
var json = data.order;
var order = []
try {
@@ -41,9 +41,8 @@ $(function () {
});
var json = JSON.stringify(items);
- $.get(OC.filePath('apporder', 'ajax', 'personal.php'), {
+ $.post(OC.generateUrl('/apps/apporder/savePersonal'), {
order: json,
- requesttoken: oc_requesttoken
}, function (data) {
$(event.srcElement).fadeTo('fast', 0.5).fadeTo('fast', 1.0);
});
@@ -61,9 +60,8 @@ $(function () {
items.push(item)
});
var json = JSON.stringify(items);
- $.get(OC.filePath('apporder', 'ajax', 'admin.php'), {
+ $.post(OC.generateUrl('/apps/apporder/saveDefaultOrder'), {
order: json,
- requesttoken: oc_requesttoken
}, function (data) {
$(event.srcElement).effect("highlight", {}, 1000);
});