* finish task #4580.
This commit is contained in:
@@ -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;}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user