From e55e237e60d401972d27646bb77a11dc2a3c99f0 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Sat, 12 Nov 2011 15:48:37 -0800 Subject: [PATCH] tabs-pane calls window.open --- extensions/tabs/tabs-pane.coffee | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/extensions/tabs/tabs-pane.coffee b/extensions/tabs/tabs-pane.coffee index c5f3cfb17..cec7285f2 100644 --- a/extensions/tabs/tabs-pane.coffee +++ b/extensions/tabs/tabs-pane.coffee @@ -18,14 +18,14 @@ class TabsPane extends Pane # click tab tabPane = this $('#tabs ul li').live 'mousedown', -> - tabPane.switchToTab this + window.open $(this).data 'path' false nextTab: -> - @switchToTab $('#tabs ul .active').next() + window.open $('#tabs ul .active').next().data 'path' prevTab: -> - @switchToTab $('#tabs ul .active').prev() + window.open $('#tabs ul .active').prev().data 'path' switchToTab: (tab) -> tab = $("#tabs ul li").get(tab - 1) if _.isNumber tab @@ -35,7 +35,6 @@ class TabsPane extends Pane path = $(tab).data 'path' $("#tabs ul .active").removeClass("active") $(tab).addClass 'active' - window.open path addTab: (path) -> existing = $("#tabs [data-path='#{path}']")