From 9ff89236ebcb9a28a787f6e483112e3efc511a9a Mon Sep 17 00:00:00 2001 From: David Molineus Date: Sun, 20 Sep 2015 19:48:23 +0200 Subject: [PATCH] Fix label of deactivated zoom options. --- module/dca/tl_leaflet_map.php | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/module/dca/tl_leaflet_map.php b/module/dca/tl_leaflet_map.php index c283bf5..11430aa 100644 --- a/module/dca/tl_leaflet_map.php +++ b/module/dca/tl_leaflet_map.php @@ -294,26 +294,36 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = array 'eval' => array('tl_class' => 'w50'), 'sql' => "char(1) NOT NULL default ''" ), - 'scrollWheelZoom' => array + 'scrollWheelZoom' => array ( 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['scrollWheelZoom'], 'exclude' => true, 'inputType' => 'select', - 'options' => array('1', '', 'center'), + 'options' => array('1', 'center'), 'reference' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomValues'], 'default' => true, - 'eval' => array('tl_class' => 'w50', 'helpwizard' => true,), + 'eval' => array( + 'tl_class' => 'w50', + 'helpwizard' => true, + 'includeBlankOption' => true, + 'blankOptionLabel' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomValues'][''][0] + ), 'sql' => "char(6) NOT NULL default ''" ), - 'doubleClickZoom' => array + 'doubleClickZoom' => array ( 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['doubleClickZoom'], 'exclude' => true, 'inputType' => 'select', - 'options' => array('1', '', 'center'), + 'options' => array('1', 'center'), 'reference' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomValues'], 'default' => true, - 'eval' => array('tl_class' => 'w50', 'helpwizard' => true,), + 'eval' => array( + 'tl_class' => 'w50', + 'helpwizard' => true, + 'includeBlankOption' => true, + 'blankOptionLabel' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomValues'][''][0] + ), 'sql' => "char(6) NOT NULL default ''" ), 'boxZoom' => array