Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Better tab behavior

  • Loading branch information...
commit 1f7b6041b65067abc036925e84d436de57dd9e9c 1 parent b8d64f9
Ahmad M. Zawawi authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/Farabi6/files/farabi.js
2  lib/Farabi6/files/farabi.js
View
@@ -486,6 +486,7 @@ function startFarabi(editorId) {
$(".icon-remove").on('click', function() {
$(this).parent().remove();
+ $('#myTab a:last').tab('show');
});
};
@@ -493,6 +494,7 @@ function startFarabi(editorId) {
$(".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();
});
Please sign in to comment.
Something went wrong with that request. Please try again.