1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

Override default method by command "insert".

This commit is contained in:
Lóna Lore
2016-03-02 16:02:53 +01:00
parent 82bc735daa
commit d8c2dc883d

View File

@@ -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.