mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
Update javascript/GridFieldExtensions.js
Allow query parameters like Translatable Locale for reorder and movetopage actions
This commit is contained in:
parent
aa09d48112
commit
9be6bf26cf
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user