From e764a75986120f84dec8d76ca06629b37c5bd74a Mon Sep 17 00:00:00 2001 From: Eric Allen Date: Sun, 4 Jul 2010 20:13:47 -0700 Subject: [PATCH] Case-sensitive compare screwed up source_view Fixes #1043 --- public/javascripts/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 45638756..e607f777 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -49,7 +49,7 @@ $.fn.clearForm = function() { /* Set up authenticity token properly */ $(document).ajaxSend(function(event, request, settings) { - if ( settings.type == 'POST' ) { + if ( settings.type == 'POST' || settings.type == 'post' ) { if(typeof(AUTH_TOKEN) != 'undefined'){ settings.data = (settings.data ? settings.data + "&" : "") + "authenticity_token=" + encodeURIComponent( AUTH_TOKEN ) + "&"