From bf6d86d4243e0a84a4b1ed94eb6ca445324ac89a Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 14 Jan 2017 10:03:19 +0000 Subject: [PATCH] Update sliding-child.js Added ajax beforeSend to allow caller to specify data for request. --- features/slidingChild/js/sliding-child.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/features/slidingChild/js/sliding-child.js b/features/slidingChild/js/sliding-child.js index cad0464..14abf5c 100644 --- a/features/slidingChild/js/sliding-child.js +++ b/features/slidingChild/js/sliding-child.js @@ -56,7 +56,11 @@ $.ajax({ type: opts.ajax.requestType, url: opts.ajax.requestUrl, - data: opts.ajax.requestData, + beforeSend: function(xhr, settings) { + if (opts.ajax.getRequestData) { + this.data = opts.ajax.getRequestData(dtRow); + } + }, contentType: opts.ajax.contentType, dataType: opts.ajax.dataType, success: function (response) {