From d8c2dc883ddd558cf7416c1e65fbe38e9e83f584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=B3na=20Lore?= Date: Wed, 2 Mar 2016 16:02:53 +0100 Subject: [PATCH] Override default method by command "insert". --- e107_web/js/core/all.jquery.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/e107_web/js/core/all.jquery.js b/e107_web/js/core/all.jquery.js index 85a931094..799f123b9 100644 --- a/e107_web/js/core/all.jquery.js +++ b/e107_web/js/core/all.jquery.js @@ -293,7 +293,9 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}}; case 'insert': // Get target selector from the response. If it is not there, default to our presets. $target = command.selector ? $(command.selector) : $target; - e107.ajax.ajaxResponseHandler($target, options, command.data); + var newOptions = options; + newOptions.method = command.method; + e107.ajax.ajaxResponseHandler($target, newOptions, command.data); break; // Command to remove a chunk from the page.