Project

General

Profile

Bug #24372 ยป 16788.patch

Administrator Admin, 2011-01-25 10:51

View differences:

typo3/jsfunc.tbe_editor.js (working copy)
if (type) {
if (type == 'required') {
form = document[TBE_EDITOR.formname][elementName];
// Check if we are within a deleted inline element
var testNode = $(form.parentNode);
while(testNode) {
if (testNode.hasClassName && testNode.hasClassName('inlineIsDeletedRecord')) {
return result;
if (form) {
// Check if we are within a deleted inline element
var testNode = $(form.parentNode);
while(testNode) {
if (testNode.hasClassName && testNode.hasClassName('inlineIsDeletedRecord')) {
return result;
}
testNode = $(testNode.parentNode);
}
testNode = $(testNode.parentNode);
}
if (form) {
var value = form.value;
if (!value || elementData.additional && elementData.additional.isPositiveNumber && (isNaN(value) || Number(value) <= 0)) {
result = 0;
    (1-1/1)