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

@ -1,13 +0,0 @@
/* 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('tab');
var hiddentab;
if (tab == 'user') {
hiddentab = 'group';
} else {
hiddentab = 'user';
}
$('#add-' + hiddentab + '-form').addClass('hidden');
$('#add-' + tab + '-form').removeClass('hidden');
});