diff app/assets/javascripts/init.tabs.js @ 118:e3f3402da5a1

Takeover handling link clicking on dropdown menu. Prevents adding history.
author Edho Arief <edho@myconan.net>
date Mon, 12 Nov 2012 14:13:39 +0700
parents 9ac24e112ea7
children 309238f5b7b1
line wrap: on
line diff
--- a/app/assets/javascripts/init.tabs.js	Mon Nov 12 14:12:58 2012 +0700
+++ b/app/assets/javascripts/init.tabs.js	Mon Nov 12 14:13:39 2012 +0700
@@ -41,6 +41,8 @@
     });
     $('#tab-resize ul a').click(function() {
       paste_resize($(this).data('size'));
+      $('.open').removeClass('open');
+      return false;
     });
 
     mode = window.location.search.substr(1).split('.');