From 8ca78fcf3f06c17707349f047d220eda43c63294 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Mon, 21 Jan 2013 20:24:18 +0100 Subject: Move requesttoken to oc-requesttoken.js --- core/js/oc-requesttoken.js | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 core/js/oc-requesttoken.js (limited to 'core/js/oc-requesttoken.js') 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 -- cgit v1.2.3