Fix issue with a same shared folder loaded in multiple teams

This commit is contained in:
yflory committed 2019-10-02 17:49:51 +02:00
1 parent d09a1c27ac
commit 0a8c6dc6b2
4 files changed
+62 -22

No files matched your search

+7 -13
View File
@@ -382,20 +382,14 @@ define([
var name = $(input).val();
if (!name.trim()) { return; }
state = true;
UI.confirm('Are you sure?', function (yes) {
if (!yes) {
APP.module.execCommand('CREATE_TEAM', {
name: name
}, function () {
var $div = $('div.cp-team-list').empty();
refreshList(common, function (content) {
state = false;
return;
}
APP.module.execCommand('CREATE_TEAM', {
name: name
}, function () {
var $div = $('div.cp-team-list').empty();
refreshList(common, function (content) {
state = false;
$div.append(content);
$('div.cp-team-cat-list').click();
});
$div.append(content);
$('div.cp-team-cat-list').click();
});
});
});