Fix issue with a same shared folder loaded in multiple teams

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

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();
});
});
});