Work around _method requirements allowing multiple methods, fixes #87

This commit is contained in:
Jordi Boggiano 2012-11-07 22:34:08 +01:00
parent 35b8b9ca40
commit 71f9ec138a

View File

@ -140,6 +140,12 @@
content = $(this).find('textarea.content').val(),
result_container = $('.result', $(this).parent());
if (method === 'ANY') {
method = 'POST';
} else if (method.indexOf('|') !== -1) {
method = method.split('|').sort().pop();
}
var requestFormat = $('#request_format').val();
var requestFormatMethod = '{{ requestFormatMethod }}';
if (requestFormatMethod == 'format_param') {