[hg] galaxy 3656: Fix parameter name bug in grid ajaxing that wa...
details: http://www.bx.psu.edu/hg/galaxy/rev/6f43a97e7908 changeset: 3656:6f43a97e7908 user: jeremy goecks <jeremy.goecks@emory.edu> date: Thu Apr 15 10:35:31 2010 -0400 description: Fix parameter name bug in grid ajaxing that was introduced by a change in the default settings (hg diff) in JQuery 1.4 diffstat: templates/grid_base.mako | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diffs (27 lines): diff -r 4ee481a4b235 -r 6f43a97e7908 templates/grid_base.mako --- a/templates/grid_base.mako Thu Apr 15 10:06:40 2010 -0400 +++ b/templates/grid_base.mako Thu Apr 15 10:35:31 2010 -0400 @@ -42,7 +42,11 @@ <%def name="grid_javascripts()"> ${h.js("jquery.autocomplete", "autocomplete_tagging" )} - <script type="text/javascript"> + <script type="text/javascript"> + // This is necessary so that, when nested arrays are used in ajax/post/get methods, square brackets ('[]') are + // not appended to the identifier of a nested array. + jQuery.ajaxSettings.traditional = true; + ## TODO: generalize and move into galaxy.base.js $(document).ready(function() { init_grid_elements(); @@ -461,8 +465,8 @@ operation = operation.toLowerCase(); // Update URL args. - url_args['operation'] = operation; - url_args['id'] = item_ids; + url_args["operation"] = operation; + url_args["id"] = item_ids; // If operation cannot be performed asynchronously, redirect to location. Otherwise do operation. var no_async = ( async_ops[operation] === undefined || async_ops[operation] === null);
participants (1)
-
Greg Von Kuster