]> git.openstreetmap.org Git - osqa.git/commitdiff
commit 1016 makes the changes made in 1014 redundand, restore the initial version...
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Tue, 3 May 2011 17:16:31 +0000 (17:16 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Tue, 3 May 2011 17:16:31 +0000 (17:16 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1017 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/skins/default/media/js/osqa.main.js

index 48de0b6074255de759059d298de633e78d55c929..2c72aa18042e1440b5c63968905ab707f2f3f5e7 100644 (file)
@@ -427,7 +427,6 @@ $(function() {
         if ($form.length) {\r
             var $textarea = $container.find('textarea');\r
             var textarea = $textarea.get(0);\r
         if ($form.length) {\r
             var $textarea = $container.find('textarea');\r
             var textarea = $textarea.get(0);\r
-            var $csrf = $container.find('[name="csrfmiddlewaretoken"]');\r
             var $button = $container.find('.comment-submit');\r
             var $cancel = $container.find('.comment-cancel');\r
             var $chars_left_message = $container.find('.comments-chars-left-msg');\r
             var $button = $container.find('.comment-submit');\r
             var $cancel = $container.find('.comment-cancel');\r
             var $chars_left_message = $container.find('.comments-chars-left-msg');\r
@@ -556,8 +555,7 @@ $(function() {
                 if (running) return false;\r
 \r
                 var post_data = {\r
                 if (running) return false;\r
 \r
                 var post_data = {\r
-                    comment: $textarea.val(),\r
-                    csrfmiddlewaretoken: $csrf.val()\r
+                    comment: $textarea.val()\r
                 }\r
 \r
                 if (comment_in_form) {\r
                 }\r
 \r
                 if (comment_in_form) {\r