addHidden('view', 'custom'); $this->addHidden('task', ''); $this->addHidden(JSession::getFormToken(), 1); $this->addHidden('custom_jplugin_id', $this->custom->custom_jplugin_id); $this->addHidden('custom_element', $this->custom->custom_element); //if ($this->custom->custom_parent_id) $this->customfields->addHidden('custom_parent_id',$this->custom->custom_parent_id); $attribute_id = vRequest::getVar('attribute_id', ''); if (!empty($attribute_id)) $this->customfields->addHidden('attribute_id', $attribute_id); ?> displayCustomFields($this->custom); ?>
custom->form) { echo $this->pluginList; } ?>
custom->form) { ?>

custom->custom_title) ?>

custom->custom_element ?>
custom->form) { $form = $this->custom->form; include(VMPATH_ADMIN.DS.'fields'.DS.'formrenderer.php'); } } else { echo vmText::_('COM_VIRTUEMART_SELECT_CUSTOM_PLUGIN'); } ?>
custom->form) { $js .= "$('#custom_plg').hide();"; } $js .= '$(\'#field_type\').change(function () { var $selected = $(this).val(); if ($selected == "E" ) $(\'#custom_plg\').show(); else { $(\'#custom_plg\').hide(); $(\'#custom_jplugin_id option:eq(0)\').attr("selected", "selected"); $(\'#custom_jplugin_id\').change(); } }); $(\'#custom_jplugin_id\').change(function () { var $id = $(this).val(); $(\'#plugin-Container\').load( \'index.php?option=com_virtuemart&view=custom&task=viewJson&format=json&custom_jplugin_id=\'+$id , function() { $(this).find("[title]").vm2admin(\'tips\',tip_image) }); }); }); '; vmJsApi::addJScript('showPlugin',$js); AdminUIHelper::endAdminArea(); ?>