* textarea in batch operation page can ajust height to fit text content.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
$(function() {
|
||||
for(i = 0; i < batchCreateNum; i++) $("#story" + i).chosen(defaultChosenOptions);
|
||||
})
|
||||
});
|
||||
|
||||
/* Get select of stories.*/
|
||||
function setStories(moduleID, projectID, num)
|
||||
@@ -78,3 +78,12 @@ $(document).on('mousedown', 'select', function()
|
||||
$(this).val(value);
|
||||
}
|
||||
})
|
||||
|
||||
if(navigator.userAgent.indexOf("Firefox") < 0)
|
||||
{
|
||||
$(document).on('input keyup paste change', 'textarea.autosize', function()
|
||||
{
|
||||
this.style.height = 'auto';
|
||||
this.style.height = (this.scrollHeight + 2) + "px";
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user