Actions
Bug #68558
closedjsfunc.updateform.js is not compatible with field type "email"
Start date:
2015-07-27
Due date:
% Done:
0%
Estimated time:
1.00 h
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:
Description
The universal formupdate-function (jsfunc.updateform.js
) ignores the new HTML5 field types (e.g. "email").
Perhaps using the case for "text", "textarea", etc. as default could be an option:
switch(type) { case "checkbox": fObj.checked = ((value && value!=0) ? "on":""); break; case "select-one": var l=fObj.length; for (a=0;a<l;a++) { if (fObj.options[a].value == value) { fObj.selectedIndex = a; } } break; case "select-multiple": var l=fObj.length; for (a=0;a<l;a++) { if (fObj.options[a].value == value) { fObj.options[a].selected = 1; } } break; case "radio": var l=fObj.length; for (a=0; a<l;a++) { if (fObj[a].value==value) { fObj[a].checked = 1; } } break; case "text": case "textarea": case "hidden": case "password": default: fObj.value = value; break; }
Updated by Wouter Wolters about 9 years ago
Seems valid. Can you come up with a patch?
See http://wiki.typo3.org/CWT for more information.
Updated by Alexander Opitz almost 9 years ago
- Status changed from New to Needs Feedback
- Target version changed from 6.2.15 to 6.2.16
Updated by Wouter Wolters almost 9 years ago
- Status changed from Needs Feedback to Closed
This is not a bug but more a feature.
The core (7LTS) does not have this piece of JavaScript anymore in its code base.
As our main focus in on 7LTS and the further development of the core I close this ticket now.
Version 6 will receive only critical bugfixes and security updates. This ticket is not critical because nothing is broken.
The mentioned JavaScript file has been moved to: https://github.com/FriendsOfTYPO3/compatibility6 if you still need it.
Updated by Oliver Hader almost 7 years ago
- Category changed from 1050 to Frontend
Actions