user can be added to group and team from user page

This commit is contained in:
Élie Bouttier 2014-08-30 18:56:02 -07:00
parent 30d8b7bd85
commit f0c6691df2
10 changed files with 298 additions and 55 deletions

View file

@ -0,0 +1,8 @@
/* This script switch the visible add form when we
* change between user and group tab on team page. */
$('a[data-toggle="tab"]').on("show.bs.tab", function () {
var tab = $(this).data('showtab');
var hiddentab = $(this).data('hidetab');
$('#add-' + hiddentab + '-form').addClass('hidden');
$('#add-' + tab + '-form').removeClass('hidden');
});