Bug #25043 » 17596_4-5_4-4.patch
t3lib/js/extjs/tceforms.js (revision ) | ||
---|---|---|
var format = TYPO3.settings.datePickerUSmode ? TYPO3.settings.dateFormatUS : TYPO3.settings.dateFormat;
|
||
var datepicker = element.next('span');
|
||
var oldValue = Date.parseDate(element.dom.value, format[index]);
|
||
var menu = new Ext.menu.DateMenu({
|
||
id: 'p' + element.dom.id,
|
||
format: format[index],
|
||
value: Date.parseDate(element.dom.value, format[index]),
|
||
value: oldValue,
|
||
handler: function(picker, date){
|
||
var relElement = Ext.getDom(picker.ownerCt.id.substring(1));
|
||
if (index === 1) {
|
||
//datetimefield, preserve time information
|
||
date.setHours(oldValue.getHours());
|
||
date.setMinutes(oldValue.getMinutes());
|
||
}
|
||
relElement.value = date.format(format[index]);
|
||
if (Ext.isFunction(relElement.onchange)) {
|
||
relElement.onchange.call(relElement);
|
||
... | ... | |
});
|
||
});
|
||
},
|
||
|
||
convertTextareasResizable: function() {
|
||
var textAreas = Ext.select("textarea[id^=tceforms-textarea-]");
|
||
textAreas.each(function(element) {
|
||
... | ... | |
}
|
||
});
|
||
}
|
||
|
||
}
|
||
Ext.onReady(TYPO3.TCEFORMS.init, TYPO3.TCEFORMS);
|
- « Previous
- 1
- 2
- Next »