mirror of
https://github.com/openclassify/openclassify.git
synced 2026-03-11 02:35:26 -05:00
create crudAjax
This commit is contained in:
parent
b8858d6cf6
commit
11591c2d5c
@ -0,0 +1,11 @@
|
||||
function crudAjax(params, url, type, callback, async = false) {
|
||||
$.ajax({
|
||||
type: type,
|
||||
data: params,
|
||||
async: async,
|
||||
url: url,
|
||||
success: function (response) {
|
||||
callback(response);
|
||||
},
|
||||
});
|
||||
}
|
||||
@ -11,3 +11,4 @@
|
||||
{{ script|raw }}
|
||||
{% endfor %}
|
||||
</script>
|
||||
{{ asset_script('visiosoft.theme.defaultadmin::js/visiosoft.js') }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user