Fixed doing $.post() without any params.
This commit is contained in:
parent
34c0bed54a
commit
c39d1a21c6
1 changed files with 5 additions and 0 deletions
|
@ -391,6 +391,11 @@ jQuery.extend({
|
|||
* @cat Ajax
|
||||
*/
|
||||
post: function( url, data, callback, type ) {
|
||||
if ( jQuery.isFunction( data ) ) {
|
||||
callback = data;
|
||||
data = {};
|
||||
}
|
||||
|
||||
return jQuery.ajax({
|
||||
type: "POST",
|
||||
url: url,
|
||||
|
|
Loading…
Reference in a new issue