From 9be6bf26cfa2c455fc0159d7f9673c0502f21d67 Mon Sep 17 00:00:00 2001 From: Martijn Date: Fri, 15 Feb 2013 19:50:44 +0100 Subject: [PATCH] Update javascript/GridFieldExtensions.js Allow query parameters like Translatable Locale for reorder and movetopage actions --- javascript/GridFieldExtensions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript/GridFieldExtensions.js b/javascript/GridFieldExtensions.js index 0f690d8..882c6ac 100644 --- a/javascript/GridFieldExtensions.js +++ b/javascript/GridFieldExtensions.js @@ -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 }