Merge branch 'soon' into staging

pull/1/head
ansuz 5 years ago
commit 83c19f01f3

@ -1742,7 +1742,9 @@ define([
Store.loadSharedFolder(null, id, data, cb); Store.loadSharedFolder(null, id, data, cb);
}; };
Store.loadSharedFolderAnon = function (clientId, data, cb) { Store.loadSharedFolderAnon = function (clientId, data, cb) {
Store.loadSharedFolder(null, data.id, data.data, cb); Store.loadSharedFolder(null, data.id, data.data, function () {
cb();
});
}; };
Store.addSharedFolder = function (clientId, data, cb) { Store.addSharedFolder = function (clientId, data, cb) {
var s = getStore(data.teamId); var s = getStore(data.teamId);

@ -139,7 +139,7 @@ define([
// Remove the input // Remove the input
$(el).text(name); $(el).text(name);
// Save the value for the correct board // Save the value for the correct board
var board = $(el.parentNode.parentNode.parentNode).attr("data-id"); var board = $(el).closest('.kanban-board').attr("data-id");
var pos = kanban.findElementPosition(el.parentNode); var pos = kanban.findElementPosition(el.parentNode);
kanban.getBoardJSON(board).item[pos].title = name; kanban.getBoardJSON(board).item[pos].title = name;
kanban.onChange(); kanban.onChange();

@ -271,7 +271,10 @@
if (element.id) { if (element.id) {
nodeItem.setAttribute('data-eid', element.id) nodeItem.setAttribute('data-eid', element.id)
} }
nodeItem.innerHTML = element.title; var nodeItemText = document.createElement('div');
nodeItemText.classList.add('kanban-item-text');
nodeItemText.innerHTML = element.title;
nodeItem.appendChild(nodeItemText);
//add function //add function
nodeItem.clickfn = element.click; nodeItem.clickfn = element.click;
nodeItem.dragfn = element.drag; nodeItem.dragfn = element.drag;

Loading…
Cancel
Save