Permalink
Browse files

Better tab behavior

  • Loading branch information...
1 parent b8d64f9 commit 1f7b6041b65067abc036925e84d436de57dd9e9c @azawawi committed Nov 5, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/Farabi6/files/farabi.js
@@ -486,13 +486,15 @@ function startFarabi(editorId) {
$(".icon-remove").on('click', function() {
$(this).parent().remove();
+ $('#myTab a:last').tab('show');
});
};
addTabBehavior();
$(".new-file-button").click(function() {
$("#myTab").append('<li><a href="#home" data-toggle="tab">Home&nbsp;&nbsp;<i class="icon-remove"></i></a></li>');
+ $('#myTab a:last').tab('show');
addTabBehavior();
});

0 comments on commit 1f7b604

Please sign in to comment.