Merge pull request #795 from openclassify/vedatakd

create Crud Ajax
This commit is contained in:
Fatih Alp 2020-11-16 14:37:28 +03:00 committed by GitHub
commit efa5ec0792
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -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);
},
});
}

View File

@ -11,3 +11,4 @@
{{ script|raw }}
{% endfor %}
</script>
{{ asset_script('visiosoft.theme.defaultadmin::js/visiosoft.js') }}