diff --git a/module/kanban/js/common.ui.js b/module/kanban/js/common.ui.js index 3f50bdd064..6ddf2f8cc0 100644 --- a/module/kanban/js/common.ui.js +++ b/module/kanban/js/common.ui.js @@ -37,7 +37,14 @@ window.changeKanbanType = function() { const type = $('[name=type]:checked').val(); const url = $.createLink('kanban', 'create', 'spaceID=' + spaceID + '&type=' + type); - loadPartial(url, '#WIPCountBox, #spaceBox, #nameBox, #ownerBox, #teamBox, #fixedColBox, #autoColBox, #archiveBox, #manageProgressBox, #alignmentBox, #descBox, #whitelistBox'); + loadPartial(url, '#WIPCountBox, #spaceBox, #nameBox, #ownerBox, #teamBox, #fixedColBox, #autoColBox, #archiveBox, #manageProgressBox, #alignmentBox, #descBox, #whitelistBox', {success: function() + { + waitDom('#spaceBox [name=space]', function() + { + const copySpaceID = $('#spaceBox input[name=space]').val(); + $('#spaceBox input[name=space]').zui('picker').$.setValue(copySpaceID); + }); + }}); } window.loadAllUsers = function() diff --git a/module/kanban/js/create.ui.js b/module/kanban/js/create.ui.js index 84d0704f7c..bb4c80d080 100644 --- a/module/kanban/js/create.ui.js +++ b/module/kanban/js/create.ui.js @@ -6,7 +6,8 @@ window.clickCopyCard = function(event) window.setCopyKanban = function(kanbanID) { - copyRegion = $('[name=copyRegionInfo]').prop('checked'); + const copyRegion = $('[name=copyRegionInfo]').prop('checked'); + const spaceType = $('[name=type]:checked').val(); const url = $.createLink('kanban', 'create', 'spaceID=' + spaceID + '&type=' + spaceType + '©KanbanID=' + kanbanID + '&exyra=copyRegion=' + (copyRegion ? '1' : '0')); loadPartial(url, '#WIPCountBox, #spaceBox, #nameBox, #ownerBox, #teamBox, #fixedColBox, #autoColBox, #archiveBox, #manageProgressBox, #alignmentBox, #descBox, #whitelistBox', {success: function() {