Project

General

Profile

Bug #22951 ยป tceforms.js.patch

Administrator Admin, 2010-06-21 17:11

View differences:

t3lib/js/extjs/tceforms.js (working copy)
},
convertDateFieldsToDatePicker: function() {
var dateFields = Ext.select("*[id^=tceforms-datefield-], *[id^=tceforms-datetimefield-]");
var dateFields = Ext.select("input[id^=tceforms-date]");
dateFields.each(function(element) {
var index = element.dom.id.match(/tceforms-datefield-/) ? 0 : 1;
var format = TYPO3.settings.datePickerUSmode ? TYPO3.settings.dateFormatUS : TYPO3.settings.dateFormat;
var datepicker = Ext.get('picker-' + element.dom.id);
var datepicker = element.next('span');
var menu = new Ext.menu.DateMenu({
id: 'p' + element.dom.id,
......
},
convertTextareasResizable: function() {
var textAreas = Ext.select("*[id^=tceforms-textarea-]");
var textAreas = Ext.select("textarea[id^=tceforms-textarea-]");
textAreas.each(function(element) {
if (TYPO3.settings.textareaFlexible) {
var elasticTextarea = new Ext.ux.elasticTextArea().applyTo(element.dom.id, {
    (1-1/1)