From 887b90923ebfd6d9eef51612b1f846576a40b075 Mon Sep 17 00:00:00 2001 From: haydenyoung Date: Wed, 11 May 2016 11:52:14 +0800 Subject: [PATCH] Only show plugin options in JCar embed code popup when specific plugin is selected for id. Style id lookup field plugin drop down to match Joomla drop down style. --- .../admin/layouts/jcar/form/fields/idlookup.php | 2 +- .../com_jcar/admin/views/item/tmpl/configuration.php | 10 +++++++++- plugins/jcar/dspace/forms/configuration.xml | 6 +++--- plugins/jcar/oai/forms/configuration.xml | 2 +- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/components/com_jcar/admin/layouts/jcar/form/fields/idlookup.php b/components/com_jcar/admin/layouts/jcar/form/fields/idlookup.php index 95854d1..09b43e4 100644 --- a/components/com_jcar/admin/layouts/jcar/form/fields/idlookup.php +++ b/components/com_jcar/admin/layouts/jcar/form/fields/idlookup.php @@ -1,7 +1,7 @@ form->getFieldset() as $field) : - $classnames = 'control-group'; + /*$classnames = 'control-group'; $rel = ''; $showon = $this->form->getFieldAttribute($field->fieldname, 'showon'); @@ -68,6 +68,8 @@ $showon = explode(':', $showon, 2); $classnames .= ' showon_'.implode(' showon_', explode(',', $showon[1])); $rel = ' rel="showon_'.$id.'['.$showon[0].']"'; + + echo $rel; endif; ?> @@ -82,6 +84,12 @@ renderField(); + + $html = str_replace('"field":"jform[idLookupPlugin]"', '"field":"idLookupPlugin"', $html); + + echo $html; endforeach; ?> diff --git a/plugins/jcar/dspace/forms/configuration.xml b/plugins/jcar/dspace/forms/configuration.xml index abfeb75..4c1d978 100644 --- a/plugins/jcar/dspace/forms/configuration.xml +++ b/plugins/jcar/dspace/forms/configuration.xml @@ -3,7 +3,7 @@