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
|
* @cat Ajax
|
||||||
*/
|
*/
|
||||||
post: function( url, data, callback, type ) {
|
post: function( url, data, callback, type ) {
|
||||||
|
if ( jQuery.isFunction( data ) ) {
|
||||||
|
callback = data;
|
||||||
|
data = {};
|
||||||
|
}
|
||||||
|
|
||||||
return jQuery.ajax({
|
return jQuery.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: url,
|
url: url,
|
||||||
|
|
Loading…
Reference in a new issue