Resolved #9 Layout Issue - Custom Lookup Field.

This commit is contained in:
2016-07-12 22:07:55 +01:00
parent 53cf534664
commit 2f9e54e371
382 changed files with 1023 additions and 970 deletions

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage customfolderlist.php
@ -132,16 +132,11 @@ class JFormFieldCustomfolderlist extends JFormFieldList
// check if button was created for field.
if (is_array($button) && count($button) > 0)
{
// Add some final script
$script[] = "
jQuery(document).ready(function() {
jQuery('#jform_".$buttonName."').closest('.control-group').addClass('input-append');
});";
// Load the needed script.
$document = JFactory::getDocument();
$document->addScriptDeclaration(implode(' ',$script));
// return the button attached to input field.
return $html . implode('',$button);
return '<div class="input-append">' .$html . implode('',$button).'</div>';
}
}
return $html;