* adjust for story field for custom.

This commit is contained in:
wangyidong
2017-12-20 16:10:34 +08:00
parent f0c123d2a8
commit b7ce9dc971
8 changed files with 32 additions and 10 deletions
+3 -3
View File
@@ -126,7 +126,7 @@ $(function()
var $col = $cols.filter('[data-key=' + col.id + ']');
$col.toggleClass('disabled', !col.show);
$col.attr('data-order', col.order);
if(col.width) $col.find('input').val(col.width.replace('px', ''));
if(col.width) $col.find('input#width').val(col.width.replace('px', ''));
}
$('.cols-list').on('click', '.col:not(.require) .show-hide, .col:not(.require) .title', function()
@@ -149,14 +149,14 @@ $(function()
$list.sortable({trigger: '.title', selector: '.col'});
}
}).on('keyup change', 'input', function()
}).on('keyup change', 'input#width', function()
{
renderColWidth($(this).closest('.col'));
});
function renderColWidth($col)
{
var width = $col.find('input').val();
var width = $col.find('input#width').val();
if(width == 'auto')
{
width = '500';