]> git.openstreetmap.org Git - osqa.git/commitdiff
Fix for the remaining bug from OSQA-96 for the code that still exists. Thanks Eugene.
authormatt <matt@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 10 May 2010 22:06:43 +0000 (22:06 +0000)
committermatt <matt@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 10 May 2010 22:06:43 +0000 (22:06 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@202 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/skins/default/templates/question.html

index 47e654a68d70168209ba70fc75d7da6178f87c34..fceff20104176d75c06eb2987c0b2359f65eb7e0 100644 (file)
         $().ready(function(){\r
             $("#nav_questions").attr('className',"on");\r
             var answer_sort_tab = "{{ tab_id }}";\r
-            $("#" + answer_sort_tab).attr('className',"on");\r
+\r
+            if (answer_sort_tab) {\r
+                $("#" + answer_sort_tab).attr('className',"on");\r
+            }\r
 \r
             $('#editor').TextAreaResizer();\r
             \r