Commit 40c15536 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Merge branch 'f9521TextArea' into 'master'

F9521 text area

See merge request !194
parents c873755a 984bbfb1
Pipeline #2650 passed with stages
in 2 minutes and 35 seconds
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Upload js to webwork16/bbaer",
"type": "shell",
"command": "scp -r extension/Resources/Public/JavaScript/qfq.* root@webwork16:/var/www/html/bbaer/typo3conf/ext/qfq/Resources/Public/JavaScript/; ssh root@webwork16 'chown -R www-data:www-data /var/www/html/bbaer/typo3conf/ext/qfq/Resources/Public/JavaScript'",
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
\ No newline at end of file
......@@ -12,5 +12,25 @@ $(document).ready( function () {
tablesorterController.setup($(this), i);
}); // end .each()
$('.qfq-auto-grow').each(function() {
var newHeight = $(this).prop('scrollHeight');
var maxHeight = $(this).data('max-height') || 0;
if(newHeight < maxHeight || maxHeight === 0) {
$(this).height(newHeight);
} else {
$(this).height(maxHeight);
}
});
$('.qfq-auto-grow').on('input', function() {
var newHeight = $(this).prop('scrollHeight');
var maxHeight = $(this).data('max-height') || 0;
if($(this).height() + 10 < newHeight) {
if(newHeight < maxHeight || maxHeight === 0) {
$(this).height(newHeight);
}
}
});
})(QfqNS);
});
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment