* add kanban setting input limit
This commit is contained in:
@@ -2,15 +2,14 @@ $(function()
|
||||
{
|
||||
var heightType = $("[name='heightType']:checked").val();
|
||||
setCardCount(heightType);
|
||||
|
||||
var fluidBoard = $("#fluidBoard").val() || 0;
|
||||
$('#colWidth, #minColWidth, #maxColWidth').attr('onkeyup', 'value=value.match(/^\\d+$/) ? value : ""');
|
||||
$('#colWidth, #minColWidth, #maxColWidth').attr('maxlength', '3');
|
||||
var fluidBoard = $("#mainContent input[name='fluidBoard'][checked='checked']").val() || 0;
|
||||
$('#colWidth').attr('disabled', fluidBoard == 1);
|
||||
$('#minColWidth').attr('disabled', fluidBoard == 0);
|
||||
$('#maxColWidth').attr('disabled', fluidBoard == 0);
|
||||
$(document).on('change', "#mainContent input[name^=fluidBoard]", function(e)
|
||||
$('#minColWidth, #maxColWidth').attr('disabled', fluidBoard == 0);
|
||||
$(document).on('change', "#mainContent input[name='fluidBoard']", function(e)
|
||||
{
|
||||
$('#colWidth').attr('disabled', e.target.value == 1);
|
||||
$('#minColWidth').attr('disabled', e.target.value == 0);
|
||||
$('#maxColWidth').attr('disabled', e.target.value == 0);
|
||||
$('#minColWidth, #maxColWidth').attr('disabled', e.target.value == 0);
|
||||
})
|
||||
});
|
||||
|
||||
@@ -25,13 +25,13 @@
|
||||
<td colspan='2'>
|
||||
<div style="display: flex;">
|
||||
<?php echo html::radio('fluidBoard', array(0 => $lang->kanbancolumn->fluidBoardList['0']), "class='inline-block'", $execution->fluidBoard);?>
|
||||
<?php echo html::input('colWidth', $execution->colWidth, "class='form-control inline-block setting-input' required autocomplete='off'");?>px
|
||||
<?php echo html::input('colWidth', ($execution->colWidth ? $execution->colWidth : 264), "class='form-control inline-block setting-input' required autocomplete='off'");?>px
|
||||
</div>
|
||||
<div style="display: flex; margin-top: 10px;">
|
||||
<?php echo html::radio('fluidBoard', array(1 => $lang->kanbancolumn->fluidBoardList['1']), "class='inline-block'", $execution->fluidBoard);?>
|
||||
<?php echo html::input('minColWidth', $execution->minColWidth, "class='form-control inline-block setting-input' required placeholder='180' autocomplete='off'");?>px
|
||||
<?php echo html::input('minColWidth', ($execution->minColWidth ? $execution->minColWidth : 180), "class='form-control inline-block setting-input' required autocomplete='off'");?>px
|
||||
<span class="input-divider">~</span>
|
||||
<?php echo html::input('maxColWidth', $execution->maxColWidth, "class='form-control inline-block setting-input' required placeholder='384' autocomplete='off'");?>px
|
||||
<?php echo html::input('maxColWidth', ($execution->maxColWidth ? $execution->maxColWidth : 384), "class='form-control inline-block setting-input' required autocomplete='off'");?>px
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user