Use contao_leaflet as reference for services and tags instead of contao_leaflet_maps.

This commit is contained in:
David Molineus
2017-10-11 11:47:21 +02:00
parent 1dce4bc1c6
commit 86bcae2f71
26 changed files with 271 additions and 271 deletions

View File

@@ -21,7 +21,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_style'] = [
],
],
'onsubmit_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'clearCache'],
['netzmacht.contao_leaflet.listeners.dca.leaflet', 'clearCache'],
],
],
@@ -143,12 +143,12 @@ $GLOBALS['TL_DCA']['tl_leaflet_style'] = [
'inputType' => 'text',
'save_callback' => [
['netzmacht.contao_toolkit.dca.listeners.alias_generator', 'handleSaveCallback'],
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateAlias'],
['netzmacht.contao_leaflet.listeners.dca.validator', 'validateAlias'],
],
'eval' => ['mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true],
'toolkit' => [
'alias_generator' => [
'factory' => 'netzmacht.contao_leaflet_maps.definition.alias_generator.factory_default',
'factory' => 'netzmacht.contao_leaflet.definition.alias_generator.factory_default',
'fields' => ['title'],
],
],
@@ -165,7 +165,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_style'] = [
'submitOnChange' => true,
'chosen' => true,
],
'options_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.style', 'getStyleOptions'],
'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.style', 'getStyleOptions'],
'reference' => &$GLOBALS['TL_LANG']['leaflet_style'],
'sql' => "varchar(32) NOT NULL default ''",
],
@@ -277,7 +277,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_style'] = [
'eval' => ['tl_class' => 'w50'],
'sql' => "char(1) NOT NULL default ''",
'save_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'clearCache'],
['netzmacht.contao_leaflet.listeners.dca.leaflet', 'clearCache'],
],
],
],