]> source.dussan.org Git - nextcloud-server.git/commitdiff
use on to add event listener instead of deprecated jquery bind
authorJörn Friedrich Dreyer <jfd@butonic.de>
Tue, 3 Sep 2013 11:12:19 +0000 (13:12 +0200)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Tue, 3 Sep 2013 11:12:19 +0000 (13:12 +0200)
core/js/oc-requesttoken.js

index 6cc6b5a855b91fbb9da302e6ffb6c7313efd0003..0d7f40c592abfc3fa139e2eca29b67209fa859af 100644 (file)
@@ -1,3 +1,4 @@
-$(document).bind('ajaxSend', function(elm, xhr, s) {
+$(document).on('ajaxSend',function(elm, xhr, s) {
        xhr.setRequestHeader('requesttoken', oc_requesttoken);
 });
+