Case-sensitive compare screwed up source_view

Fixes #1043
This commit is contained in:
Eric Allen 2010-07-04 20:13:47 -07:00
parent 92047e86e4
commit e764a75986

View file

@ -49,7 +49,7 @@ $.fn.clearForm = function() {
/* Set up authenticity token properly */ /* Set up authenticity token properly */
$(document).ajaxSend(function(event, request, settings) { $(document).ajaxSend(function(event, request, settings) {
if ( settings.type == 'POST' ) { if ( settings.type == 'POST' || settings.type == 'post' ) {
if(typeof(AUTH_TOKEN) != 'undefined'){ if(typeof(AUTH_TOKEN) != 'undefined'){
settings.data = (settings.data ? settings.data + "&" : "") settings.data = (settings.data ? settings.data + "&" : "")
+ "authenticity_token=" + encodeURIComponent( AUTH_TOKEN ) + "&" + "authenticity_token=" + encodeURIComponent( AUTH_TOKEN ) + "&"