* finish task #4580.

This commit is contained in:
wangyidong
2018-07-03 16:11:45 +08:00
parent 1aa90107c8
commit 441b8cf589
2 changed files with 9 additions and 5 deletions
+1
View File
@@ -22,6 +22,7 @@
#steps.sortable-sorting > tr.drag-row > td {background-color: #edf3fe!important}
#steps.sortable > tr.drop-success > td {background-color: #cfe0ff; transition: background-color 2s;}
#steps .step-type-toggle {padding: 5px 11px 5px 7px;}
#steps .step textarea.autosize{resize:none;}
.table-bordered .step-actions {width: 105px;}
.table-bordered > #steps > tr > td {padding: 0; background-color: #fafafa; border: 1px solid #ddd!important; border-left-style: dotted!important; border-right-style: dotted!important;}
+8 -5
View File
@@ -143,14 +143,17 @@ function setStories()
*/
function initSteps(selector)
{
if(navigator.userAgent.indexOf("Firefox") < 0)
$(document).on('input keyup paste change', 'textarea.autosize', function()
{
$(document).on('input keyup paste change', 'textarea.autosize', function()
var height = (this.scrollHeight + 2) + "px";
this.style.height = 'auto';
this.style.height = height;
$(this).closest('tr').find('textarea').each(function()
{
this.style.height = 'auto';
this.style.height = (this.scrollHeight + 2) + "px";
this.style.height = height;
});
}
});
var $steps = $(selector || '#steps');
var $stepTemplate = $('#stepTemplate').detach().removeClass('template').attr('id', null);
var initSortableCallTask = null;