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