remove 'add tab' tab

This commit is contained in:
Chris Wanstrath 2011-09-05 22:40:15 -07:00
parent fdfcd0ac25
commit c630c17ac2
3 changed files with 2 additions and 33 deletions

View File

@ -15,15 +15,10 @@ class Tabs extends Pane
initialize: ->
tab = this
# click tab
$(document).delegate '#tabs ul li:not(.add) a', 'click', ->
$(document).delegate '#tabs ul a', 'click', ->
tab.switchToTab this
false
# click 'add' tab
$(document).delegate '#tabs .add a', 'click', ->
tab.addTab()
false
toggle: ->
if $('#tabs').length
@hideTabs()

View File

@ -19,31 +19,6 @@
padding: 3px 0 0 0;
}
#tabs .add a {
width: 12px;
height: 12px;
margin-top: 2px;
margin-left: 10px;
padding: 2px;
font-size: 15px;
font-weight: bold;
color: #fff;
text-shadow: #000 1px 1px 0;
background: #d8d7d8;
border: 1px solid #a0a0a0;
border-bottom: none;
-webkit-border-top-right-radius: 10px 5px;
-webkit-border-top-left-radius: 10px 5px;
-webkit-box-shadow: inset 0 1px 0 white;
}
#tabs .add span {
display: block;
margin-top: -4px;
}
#tabs ul {
list-style: none;
border-bottom: 1px solid #a0a0a0;

View File

@ -1,7 +1,6 @@
<div id="tabs">
<ul class="clearfix">
<li class="active"><a href="#">untitled</a></li>
<li class="add"><a href="#"><span>+</span></a></li>
</ul>
</ul>
</div>