changeset 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 71fdd9ee5a29
children 52fa2536a102
files app/assets/javascripts/init.tabs.js
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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('.');