File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed
assets/javascripts/crabgrass Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -121,8 +121,7 @@ var wikiLock = {
121
121
var url = this . locks . get ( wikiId ) ;
122
122
this . locks . unset ( wikiId ) ; // <- prevent additional unlocking
123
123
new Ajax . Request ( url , {
124
- method : 'delete' , asynchronous : false ,
125
- parameters : { authenticity_token : $$ ( 'meta[name=csrf-token]' ) [ 0 ] }
124
+ method : 'delete' , asynchronous : false
126
125
} ) ;
127
126
}
128
127
}
Original file line number Diff line number Diff line change @@ -127,8 +127,6 @@ def crabgrass_javascripts
127
127
lines << '<![endif]-->'
128
128
end
129
129
130
- lines << csrf_meta_tag
131
-
132
130
# Autocomplete caches results in sessionStorage. After logging out, the session storage should be cleared.
133
131
unless logged_in?
134
132
lines . push ( '<script type="text/javascript">if(sessionStorage.length > 0) sessionStorage.clear();</script>' )
Original file line number Diff line number Diff line change 9
9
/ begin scripts
10
10
= crabgrass_javascripts
11
11
/ end scripts
12
-
12
+ = csrf_meta_tag
13
13
%title
14
14
=h html_title
15
15
=# call_hook :html_head
You can’t perform that action at this time.
0 commit comments