summaryrefslogtreecommitdiffstats
path: root/core/templates/layout.user.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/templates/layout.user.php')
-rw-r--r--core/templates/layout.user.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index 2abe4da8538..a2560b755fa 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -31,14 +31,10 @@
?>
<?php endforeach; ?>
<script type="text/javascript">
- $(function() {
- requesttoken = '<?php echo $_['requesttoken']; ?>';
- OC.EventSource.requesttoken=requesttoken;
- $(document).bind('ajaxSend', function(elm, xhr, s){
- if(requesttoken) {
- xhr.setRequestHeader('requesttoken', requesttoken);
- }
- });
+ requesttoken = '<?php echo $_['requesttoken']; ?>';
+ OC.EventSource.requesttoken=requesttoken;
+ $(document).bind('ajaxSend', function(elm, xhr, s){
+ xhr.setRequestHeader('requesttoken', requesttoken);
});
</script>
</head>