diff --git a/module/kanban/model.php b/module/kanban/model.php index d910a7f7a6..1f1efaf6c0 100755 --- a/module/kanban/model.php +++ b/module/kanban/model.php @@ -2260,8 +2260,8 @@ class kanbanModel extends model $this->dao->insert(TABLE_KANBAN)->data($kanban) ->autoCheck() ->batchCheck($this->config->kanban->create->requiredFields, 'notempty') - ->checkIF(!$kanban->fluidBoard, 'colWidth', 'gt', 0) - ->batchCheckIF($kanban->fluidBoard, 'minColWidth,maxColWidth', 'gt', 0) + ->checkIF(!$kanban->fluidBoard, 'colWidth', 'ge', 200) + ->batchCheckIF($kanban->fluidBoard, 'minColWidth,maxColWidth', 'ge', 200) ->checkIF($kanban->minColWidth and $kanban->maxColWidth and $kanban->fluidBoard, 'maxColWidth', 'gt', $kanban->minColWidth) ->check('name', 'unique', "space = {$kanban->space}") ->exec(); diff --git a/module/task/view/taskteam.html.php b/module/task/view/taskteam.html.php index b3cd737aad..908d1f6720 100644 --- a/module/task/view/taskteam.html.php +++ b/module/task/view/taskteam.html.php @@ -163,7 +163,15 @@ $(document).ready(function() var adjustButtons = function() { var $deleteBtn = $taskTeamEditor.find('.btn-delete'); - if ($deleteBtn.length == 1) $deleteBtn.addClass('disabled').attr('disabled', 'disabled'); + if($deleteBtn.length == 1) + { + $deleteBtn.addClass('disabled').attr('disabled', 'disabled'); + } + else if(config.currentMethod == 'create') + { + $deleteBtn.removeClass('disabled').removeAttr('disabled'); + } + }; var disableMembers = function() @@ -260,13 +268,18 @@ $(document).ready(function() setLineNumber(); }).on('click', '.btn-delete', function() { + if($(this).hasClass('disabledDeleted')) return; + var $row = $(this).closest('tr'); team)):?> if(!checkRemove($row.index())) return; + + $taskTeamEditor.find('.btn-delete').addClass('disabledDeleted'); $row.addClass('highlight').fadeOut(700, function() { $row.remove(); + $taskTeamEditor.find('.btn-delete').removeClass('disabledDeleted'); disableMembers(); adjustButtons(); setLineNumber();