remove the awesome hover effect for now

This commit is contained in:
Chris Wanstrath
2011-08-27 02:21:26 -07:00
parent d21f74bd7d
commit 28843b75bb

View File

@@ -10,21 +10,6 @@ exports.show = ->
Chrome.addPane 'main', tabs.replace '<%= editor %>', edit
# awesome hover effect
if false
$('#tabs ul li:not(".active") a').mousemove (e) ->
originalBG = $(this).css("background-color")
x = e.pageX - @offsetLeft
y = e.pageY - @offsetTop
xy = x + " " + y
bgWebKit = "-webkit-gradient(radial, #{xy}, 0, #{xy}, 100, from(rgba(255,255,255,0.8)), to(rgba(255,255,255,0.0))), #{originalBG}"
$(this).css background: bgWebKit
$('#tabs ul li:not(".active") a').mouseleave (e) ->
$(this).removeAttr 'style'
# events
$('#tabs ul li:not(.add) a').live 'click', ->
$('#tabs ul .active').removeClass()