aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-09-03 13:12:19 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-09-03 13:12:19 +0200
commitb0c6f990e4e5ad7bb635cf8a296a14da6a1eb47a (patch)
treebf755aa6ab4bb3a843cde73ced899ea447feb34b
parent06870a6e390f68d741893b4454b8fe4063404ca8 (diff)
downloadnextcloud-server-b0c6f990e4e5ad7bb635cf8a296a14da6a1eb47a.tar.gz
nextcloud-server-b0c6f990e4e5ad7bb635cf8a296a14da6a1eb47a.zip
use on to add event listener instead of deprecated jquery bind
-rw-r--r--core/js/oc-requesttoken.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/js/oc-requesttoken.js b/core/js/oc-requesttoken.js
index 6cc6b5a855b..0d7f40c592a 100644
--- a/core/js/oc-requesttoken.js
+++ b/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);
});
+