From: matt Date: Mon, 10 May 2010 22:06:43 +0000 (+0000) Subject: Fix for the remaining bug from OSQA-96 for the code that still exists. Thanks Eugene. X-Git-Tag: live~927 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/6b9b8579ab09beb19c0956bcd3938047c900bd61 Fix for the remaining bug from OSQA-96 for the code that still exists. Thanks Eugene. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@202 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/skins/default/templates/question.html b/forum/skins/default/templates/question.html index 47e654a..fceff20 100644 --- a/forum/skins/default/templates/question.html +++ b/forum/skins/default/templates/question.html @@ -22,7 +22,10 @@ $().ready(function(){ $("#nav_questions").attr('className',"on"); var answer_sort_tab = "{{ tab_id }}"; - $("#" + answer_sort_tab).attr('className',"on"); + + if (answer_sort_tab) { + $("#" + answer_sort_tab).attr('className',"on"); + } $('#editor').TextAreaResizer();