Bug #18751 ยป 0008336.patch
typo3/jsfunc.tbe_editor.js (Arbeitskopie) | ||
---|---|---|
return result;
|
||
},
|
||
checkElementByType: function(type, elementName, elementData, autoNotify) {
|
||
var result = 1;
|
||
var formObj, result = 1;
|
||
if (type) {
|
||
if (type == 'required') {
|
||
var value = document[TBE_EDITOR.formname][elementName].value;
|
||
if (!value || elementData.additional && elementData.additional.isPositiveNumber && (isNaN(value) || Number(value) <= 0)) {
|
||
result = 0;
|
||
if (autoNotify) {
|
||
TBE_EDITOR.setImage('req_'+elementData.requiredImg, TBE_EDITOR.images.req);
|
||
TBE_EDITOR.notifyNested(elementName, false);
|
||
formObj = document[TBE_EDITOR.formname][elementName];
|
||
if (formObj) {
|
||
var value = formObj.value;
|
||
if (!value || elementData.additional && elementData.additional.isPositiveNumber && (isNaN(value) || Number(value) <= 0)) {
|
||
result = 0;
|
||
if (autoNotify) {
|
||
TBE_EDITOR.setImage('req_'+elementData.requiredImg, TBE_EDITOR.images.req);
|
||
TBE_EDITOR.notifyNested(elementName, false);
|
||
}
|
||
}
|
||
}
|
||
} else if (type == 'range' && elementData.range) {
|
||
var formObj = document[TBE_EDITOR.formname][elementName+'_list'];
|
||
formObj = document[TBE_EDITOR.formname][elementName+'_list'];
|
||
if (!formObj) {
|
||
// special treatment for IRRE fields:
|
||
var tempObj = document[TBE_EDITOR.formname][elementName];
|