Feature #24058 » 0016393c.patch
t3lib/class.t3lib_tceforms.php Locally Modified (Based On LOCAL) | ||
---|---|---|
// css class and id will show the kind of field
|
||
if (in_array('date', $evalList)) {
|
||
$inputId = uniqid('tceforms-datefield-');
|
||
$cssClasses[] = 'tceforms-textfield tceforms-datefield';
|
||
$dateRange = '';
|
||
if ($config['range']['lower'] > 0 ) {
|
||
$dateRange .= ' lower-' . $config['range']['lower'];
|
||
}
|
||
if ($config['range']['upper'] > 0 ) {
|
||
$dateRange .= ' upper-' . $config['range']['upper'];
|
||
}
|
||
$cssClasses[] = 'tceforms-textfield tceforms-datefield' . $dateRange;
|
||
$fieldAppendix = t3lib_iconWorks::getSpriteIcon(
|
||
'actions-edit-pick-date',
|
||
array(
|
t3lib/js/extjs/tceforms.js Locally Modified (Based On LOCAL) | ||
---|---|---|
var datepicker = element.next('span');
|
||
// check for daterange
|
||
var lowerMatch = element.dom.className.match(/lower-(\d+)\b/);
|
||
minDate = lowerMatch ? new Date(lowerMatch[1] * 1000) : null;
|
||
var upperMatch = element.dom.className.match(/upper-(\d+)\b/);
|
||
maxDate = upperMatch ? new Date(upperMatch[1] * 1000) : null;
|
||
var menu = new Ext.menu.DateMenu({
|
||
id: 'p' + element.dom.id,
|
||
format: format[index],
|
||
value: Date.parseDate(element.dom.value, format[index]),
|
||
minDate: minDate,
|
||
maxDate: maxDate,
|
||
handler: function(picker, date){
|
||
var relElement = Ext.getDom(picker.ownerCt.id.substring(1));
|
||
relElement.value = date.format(format[index]);
|
- « Previous
- 1
- 2
- Next »