Help to deal with the scope.
How can I see the ajaxDelete function from the second file?
backend.js (generic)
$(document).ready(function() { function ajaxDelete() { } }); pages.js
$(document).ready(function() { $('.delete-entity').click(ajaxDelete); });