Update javascript/GridFieldExtensions.js

Allow query parameters like Translatable Locale for reorder and movetopage actions
This commit is contained in:
Martijn 2013-02-15 19:50:44 +01:00
parent aa09d48112
commit 9be6bf26cf

View File

@ -191,7 +191,7 @@
});
grid.reload({
url: grid.data("url") + "/reorder",
url: grid.data("url").indexOf("?") ? grid.data("url").replace("?", "/reorder?") : grid.data("url") + "/reorder",
data: data.get()
});
};
@ -227,7 +227,7 @@
grid.find("tbody").sortable("cancel");
grid.reload({
url: grid.data("url") + "/movetopage",
url: grid.data("url").indexOf("?") ? grid.data("url").replace("?", "/movetopage?") : grid.data("url") + "/movetopage",
data: [
{ name: "move[id]", value: ui.draggable.data("id") },
{ name: "move[page]", value: page }