use on to add event listener instead of deprecated jquery bind

remotes/origin/stable6
Jörn Friedrich Dreyer 13 years ago
parent 06870a6e39
commit b0c6f990e4
  1. 3
      core/js/oc-requesttoken.js

@ -1,3 +1,4 @@
$(document).bind('ajaxSend', function(elm, xhr, s) {
$(document).on('ajaxSend',function(elm, xhr, s) {
xhr.setRequestHeader('requesttoken', oc_requesttoken);
});

Loading…
Cancel
Save