]> git.openstreetmap.org Git - osqa.git/commitdiff
Prevents the "ask a question" sidebar from keeping fading in and out the same content.
authorhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 11 Apr 2011 10:37:28 +0000 (10:37 +0000)
committerhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 11 Apr 2011 10:37:28 +0000 (10:37 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@962 0cfe37f9-358a-4d5e-be75-b63607b5c754

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

index fab1c0af92778afdf54da5159a39f1047e0411d1..a2b6e55ffdcf6debed8c9321ab8f4c910a4a92a9 100644 (file)
@@ -1,8 +1,10 @@
 var currentSideBar = 'div#title_side_bar';
 function changeSideBar(enabled_bar) {
-    $(currentSideBar).hide();
-    currentSideBar = enabled_bar;
-    $(currentSideBar).fadeIn('slow');
+    if (enabled_bar != currentSideBar) {
+        $(currentSideBar).hide();
+        currentSideBar = enabled_bar;
+        $(currentSideBar).fadeIn('slow');
+    }
 
 }