Fix to tabs in upload

This commit is contained in:
Marcin Kurczewski 2013-11-30 16:42:47 +01:00
parent 4285aff671
commit e93c3588f9

View file

@ -1,10 +1,10 @@
$(function()
{
$('.tabs nav a').click(function(e)
$('.tabs a').click(function(e)
{
e.preventDefault();
var className = $(this).parents('li').attr('class').replace('selected', '').replace(/^\s+|\s+$/, '');
$('.tabs nav li').removeClass('selected');
$('.tabs li').removeClass('selected');
$(this).parents('li').addClass('selected');
$('.tab').hide();
$('.tab.' + className).show();