Make pages adjust automatically

This commit is contained in:
Eliot Whalan 2016-06-24 16:50:51 +10:00
parent 337a7ddbae
commit f80d779b28
2 changed files with 3 additions and 2 deletions

View File

@ -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>

View File

@ -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>