Skip to content

Commit

Permalink
Merge pull request #145 from Seebomega/patch-1
Browse files Browse the repository at this point in the history
data is not defined when using requestContentType = 'json'
  • Loading branch information
sergiodlopes authored Mar 24, 2018
2 parents d2f7433 + 0c88d08 commit bdd3913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.flexdatalist.js
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ jQuery.fn.flexdatalist = function (_option, _value) {
}
$this.addClass('flexdatalist-loading');
if (options.requestContentType === 'json') {
settings.data = JSON.stringify(data);
settings.data = JSON.stringify(settings.data);
}
$.ajax($.extend(
{
Expand Down

0 comments on commit bdd3913

Please sign in to comment.