use on to add event listener instead of deprecated jquery bind

This commit is contained in:
Jörn Friedrich Dreyer 2013-09-03 13:12:19 +02:00
parent 06870a6e39
commit b0c6f990e4
1 changed files with 2 additions and 1 deletions

View File

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