mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
add crud function for base theme
This commit is contained in:
parent
2edf2e5896
commit
50cdbd7496
@ -3,3 +3,15 @@
|
||||
// Go!
|
||||
|
||||
})(window, document);
|
||||
|
||||
function crud(params, url, type, callback) {
|
||||
$.ajax({
|
||||
type: type,
|
||||
async: false,
|
||||
data: params,
|
||||
url: url,
|
||||
success: function (response) {
|
||||
callback(response);
|
||||
},
|
||||
});
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user