mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 14:56:13 -06:00
#4231 Heavy Machinery Project
This commit is contained in:
parent
7b133a8459
commit
d0be55ade2
@ -1,4 +1,4 @@
|
|||||||
function crudAjax(params, url, type, callback = () => {}, async = false) {
|
function crudAjax(params, url, type = 'GET', callback = () => {}, async = false) {
|
||||||
return $.ajax({
|
return $.ajax({
|
||||||
type: type,
|
type: type,
|
||||||
data: params,
|
data: params,
|
||||||
@ -8,4 +8,4 @@ function crudAjax(params, url, type, callback = () => {}, async = false) {
|
|||||||
callback(response);
|
callback(response);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
function crudAjax(params, url, type, callback, async = false) {
|
function crudAjax(params, url, type = 'GET', callback = () => {}, async = false) {
|
||||||
return $.ajax({
|
return $.ajax({
|
||||||
type: type,
|
type: type,
|
||||||
data: params,
|
data: params,
|
||||||
@ -8,4 +8,4 @@ function crudAjax(params, url, type, callback, async = false) {
|
|||||||
callback(response);
|
callback(response);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user