Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

More proper tabs. selection event is fired now

  • Loading branch information...
commit cea03b14882f88a4d04002647cc78cd59478cf6e 1 parent e72e26c
@azawawi authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/Farabi6/files/farabi.js
View
8 lib/Farabi6/files/farabi.js
@@ -475,7 +475,13 @@ function startFarabi(editorId) {
});
$(".new-file-button").click(function() {
- $("#myTab").append('<li class="active"><a href="#home" data-toggle="tab">Home&nbsp;&nbsp;<i class="icon-remove"></i></a></li>');
+ $("#myTab").append('<li><a href="#home" data-toggle="tab">Home&nbsp;&nbsp;<i class="icon-remove"></i></a></li>');
+ });
+
+ $('a[data-toggle="tab"]').on('shown', function (e) {
+ //e.target // activated tab
+ //e.relatedTarget // previous tab
+ alert("TODO implement editor tab selection");
});
}
Please sign in to comment.
Something went wrong with that request. Please try again.