parent
e17ace40ed
commit
aed5ddd1b7
|
@ -153,18 +153,6 @@ module.exports = Class( 'ElementStyler',
|
||||||
: val;
|
: val;
|
||||||
},
|
},
|
||||||
|
|
||||||
'datalist': function( value, ref_id )
|
|
||||||
{
|
|
||||||
var val = this._selectData[ref_id][value];
|
|
||||||
|
|
||||||
// return the string associated with the given value
|
|
||||||
// (the text for the option), or the given value if it does not
|
|
||||||
// exist
|
|
||||||
return ( val === undefined )
|
|
||||||
? value
|
|
||||||
: val;
|
|
||||||
},
|
|
||||||
|
|
||||||
'dateTime': function( value )
|
'dateTime': function( value )
|
||||||
{
|
{
|
||||||
var ret_val = new Date( ( +value ) * 1000 );
|
var ret_val = new Date( ( +value ) * 1000 );
|
||||||
|
@ -403,9 +391,9 @@ module.exports = Class( 'ElementStyler',
|
||||||
{
|
{
|
||||||
var $element = this.getElementByName( name, index, null, $context );
|
var $element = this.getElementByName( name, index, null, $context );
|
||||||
|
|
||||||
// if the provided question is not a select or a datalist, then we cannot add options
|
// if the provided question is not a select, then we cannot add options
|
||||||
// to it---use the first index instead
|
// to it---use the first index instead
|
||||||
if ( ! [ 'select', 'datalist' ].includes( this._getElementType( name ) ) )
|
if ( this._getElementType( name ) !== 'select' )
|
||||||
{
|
{
|
||||||
$element.val( ( options[ 0 ] || { value: '' } ).value );
|
$element.val( ( options[ 0 ] || { value: '' } ).value );
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -44,7 +44,6 @@ module.exports = function( type_map )
|
||||||
city: formatter.CityFormatter,
|
city: formatter.CityFormatter,
|
||||||
currency: formatter.CurrencyFormatter(),
|
currency: formatter.CurrencyFormatter(),
|
||||||
'float': formatter.FloatFormatter,
|
'float': formatter.FloatFormatter,
|
||||||
datalist: Base.use( formatter.Number )(),
|
|
||||||
date: formatter.FullDateFormatter,
|
date: formatter.FullDateFormatter,
|
||||||
dollars: formatter.DollarFormatter(),
|
dollars: formatter.DollarFormatter(),
|
||||||
manualDate: formatter.FullDateFormatter,
|
manualDate: formatter.FullDateFormatter,
|
||||||
|
|
Loading…
Reference in New Issue