aboutsummaryrefslogtreecommitdiffstats
path: root/core/js/oc-requesttoken.js
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2013-01-28 19:36:21 +0100
committerJan-Christoph Borchardt <hey@jancborchardt.net>2013-01-28 19:36:21 +0100
commit3bafa87a1223d18e7f772c9551f17aaf7bcc7abb (patch)
tree30c0b4ee3ba330ebed4effa332b946c61e6d418e /core/js/oc-requesttoken.js
parentfeb65c89f2780220bb560a8f63c7dc6ac94602b0 (diff)
parent06c1c35ac90f7920afa637ab0b628529b4135d40 (diff)
downloadnextcloud-server-3bafa87a1223d18e7f772c9551f17aaf7bcc7abb.tar.gz
nextcloud-server-3bafa87a1223d18e7f772c9551f17aaf7bcc7abb.zip
merge styles
Diffstat (limited to 'core/js/oc-requesttoken.js')
-rw-r--r--core/js/oc-requesttoken.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/js/oc-requesttoken.js b/core/js/oc-requesttoken.js
new file mode 100644
index 00000000000..f4cf286b8aa
--- /dev/null
+++ b/core/js/oc-requesttoken.js
@@ -0,0 +1,3 @@
+$(document).bind('ajaxSend', function(elm, xhr, s) {
+ xhr.setRequestHeader('requesttoken', oc_requesttoken);
+}); \ No newline at end of file