File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
// Copyright (C) 2007-2024 by Ubaldo Porcheddu <[email protected] >
2
2
3
+
3
4
function tableRowCheck ( obj ) {
4
5
input = obj . querySelector ( 'input' )
5
6
input . checked = ! input . checked
@@ -60,7 +61,6 @@ function fieldDownload(o, name) {
60
61
}
61
62
}
62
63
63
-
64
64
function fieldEditor ( name ) {
65
65
var o = document . getElementsByName ( 'ejaValues[' + name + ']' ) [ 0 ]
66
66
if ( ! editors . hasOwnProperty ( name ) ) {
@@ -91,6 +91,13 @@ toasts.forEach(function (toast) {
91
91
} , 5000 ) ;
92
92
} ) ;
93
93
94
+ var formElements = document . querySelectorAll ( 'input, textarea, select' ) ;
95
+ if ( formElements . length <= 3 && formElements [ 0 ] . tagName === 'TEXTAREA' ) {
96
+ var screenHeight = window . innerHeight ;
97
+ var screenWidth = window . innerWidth ;
98
+ formElements [ 0 ] . style . height = screenHeight / 2 + 'px' ;
99
+ }
100
+
94
101
document . getElementById ( 'ejaForm' ) . addEventListener ( 'submit' , function ( event ) {
95
102
for ( var key in editors ) {
96
103
editors [ key ] . save ( )
You can’t perform that action at this time.
0 commit comments