File modules/cms/ui/themes/default/script/plugin/jquery-plugin-orAutoheight.js
Last commit: Wed Mar 31 01:52:57 2021 +0200 Jan Dankert New: Replace JQuery with OQuery, a selfmade light JQuery replacement.
1 import $ from "../jquery-global.js"; 2 3 /** 4 * Input-Hints 5 */ 6 export default function() { 7 8 let resize = function( element ) 9 { 10 let lines = $(element).val().split("\n").length; 11 $(element).attr('rows',lines+3); 12 }; 13 14 $(this).each(function(i) 15 { 16 resize(this); 17 }); 18 19 return $(this).keypress(function() 20 { 21 resize(this); 22 }); 23 };
Downloadmodules/cms/ui/themes/default/script/plugin/jquery-plugin-orAutoheight.js
History Wed, 31 Mar 2021 01:52:57 +0200 Jan Dankert New: Replace JQuery with OQuery, a selfmade light JQuery replacement. Mon, 29 Mar 2021 01:06:08 +0200 Jan Dankert Removed common.js and moved the callbacks to the workbench module. Sat, 27 Mar 2021 05:14:11 +0100 Jan Dankert Refactoring: Converting all script files to ES6 modules (work in progress); removed jquery-ui (drag and drop will be replaced by HTML5, sortable by a small lib) Sun, 23 Feb 2020 04:01:30 +0100 Jan Dankert Refactoring with Namespaces for the cms modules, part 1: moving.