mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
Merge branch 'master' of https://github.com/openclassify/openclassify into muammertop
This commit is contained in:
commit
83f2a37223
@ -1,11 +1,14 @@
|
|||||||
function crudAjax(params, url, type, callback = () => {}, async = false) {
|
function crudAjax(params, url, type = 'GET', callback = () => {}, async = true, options = {}) {
|
||||||
return $.ajax({
|
return $.ajax({
|
||||||
type: type,
|
...{
|
||||||
data: params,
|
type: type,
|
||||||
async: async,
|
data: params,
|
||||||
url: url,
|
async: async,
|
||||||
success: function (response) {
|
url: url,
|
||||||
callback(response);
|
success: function (response) {
|
||||||
|
callback(response);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
...options
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,11 +1,14 @@
|
|||||||
function crudAjax(params, url, type, callback, async = false) {
|
function crudAjax(params, url, type = 'GET', callback = () => {}, async = true, options = {}) {
|
||||||
return $.ajax({
|
return $.ajax({
|
||||||
type: type,
|
...{
|
||||||
data: params,
|
type: type,
|
||||||
async: async,
|
data: params,
|
||||||
url: url,
|
async: async,
|
||||||
success: function (response) {
|
url: url,
|
||||||
callback(response);
|
success: function (response) {
|
||||||
|
callback(response);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
...options
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user