From 707d1130ae17e04d4cc85f5e741211eed6c1b50d Mon Sep 17 00:00:00 2001 From: mmaiatico Date: Wed, 24 May 2017 17:09:22 -0400 Subject: [PATCH] Update grapple-jquery.js Improved handling for custom URLs --- app/assets/javascripts/grapple-jquery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/grapple-jquery.js b/app/assets/javascripts/grapple-jquery.js index ee65793..f0d6b62 100644 --- a/app/assets/javascripts/grapple-jquery.js +++ b/app/assets/javascripts/grapple-jquery.js @@ -113,7 +113,7 @@ GrappleTable.prototype = { var self = this; var url = this.url; if(params.length) { - url += '?' + params; + url += (url.indexOf('?') == -1 ? '?' : '&') + params; } $.ajax(url, { success: function(data) {