Make pages adjust automatically
This commit is contained in:
parent
337a7ddbae
commit
f80d779b28
|
@ -484,7 +484,8 @@
|
|||
var resizeTextarea = function(el) {
|
||||
jQuery(el).css('height', 'auto').css('height', el.scrollHeight + offset);
|
||||
};
|
||||
jQuery(this).on('keyup input', function() { resizeTextarea(this); }).removeAttr('data-autoresize');
|
||||
jQuery(this).on('keyup input', function() { resizeTextarea(this); });
|
||||
resizeTextarea(this);
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
|
@ -479,7 +479,7 @@
|
|||
var resizeTextarea = function(el) {
|
||||
jQuery(el).css('height', 'auto').css('height', el.scrollHeight + offset);
|
||||
};
|
||||
jQuery(this).on('keyup input', function() { resizeTextarea(this); }).removeAttr('data-autoresize');
|
||||
jQuery(this).on('keyup input', function() { resizeTextarea(this); });
|
||||
});
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue