Merge pull request #279 from ilvalle/fix-editor

Dynamic tab width in editor settings
This commit is contained in:
mdipierro
2013-10-26 18:23:16 -07:00
6 changed files with 49 additions and 9 deletions
@@ -16,3 +16,23 @@
background-repeat: repeat-x;
}
/* Close button on tab*/
.nav-tabs li a > .close {
font-size: 18px;
padding-left: 5px;
float: right;
margin-right: -10px;
padding-right: 5px;
}
.nav-tabs>li>a {
overflow: hidden;
white-space: nowrap;
word-wrap: normal;
-o-text-overflow: ellipsis;
text-overflow: ellipsis;
}
/*.nav-tabs>li {
min-width: 100px;
}*/
+1 -1
View File
@@ -260,7 +260,7 @@ function load_file(url) {
if(typeof (json['plain_html']) !== undefined) {
if($('#' + json['id']).length === 0 || json['force'] === true) {
// Create a tab and put the code in it
var tab_header = '<li><a href="#' + json['id'] + '" data-toggle="tab">' + json['filename'] + '<button type="button" class="close">&times;</button></a></li>';
var tab_header = '<li><a title="'+ json['filename'] +'" href="#' + json['id'] + '" data-toggle="tab"><button type="button" class="close">&times;</button>' + json['realfilename'] + '</a></li>';
var tab_body = '<div id="' + json['id'] + '" class="tab-pane fade in " >' + json['plain_html'] + '</div>';
if(json['force'] === false) {
$('#filesTab').append($(tab_header));