Created
November 28, 2013 17:05
-
-
Save naoyeye/7695067 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
controllers.controller('TabBarController',function TabBarController ($scope,$log,$http) { | |
var tabBarItem =$('#tabBar > .item'); | |
var chatPanelOpen = false; | |
tabBarItem.click(function(){ | |
var tabClass = $(this).data('tab'); | |
if(!chatPanelOpen){ | |
$('#wrapper').addClass(tabClass); | |
chatPanelOpen = true; | |
} else{ | |
$('#wrapper').removeClass(tabClass); | |
chatPanelOpen = false; | |
} | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment