Permalink
Browse files

More proper tabs. selection event is fired now

  • Loading branch information...
azawawi committed Nov 5, 2012
1 parent e72e26c commit cea03b14882f88a4d04002647cc78cd59478cf6e
Showing with 7 additions and 1 deletion.
  1. +7 −1 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");
});
}

0 comments on commit cea03b1

Please sign in to comment.