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 adminviews.php
@ -132,16 +132,11 @@ class JFormFieldAdminviews extends JFormFieldList
// check if button was created for admin_view 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;

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 articles.php
@ -132,16 +132,11 @@ class JFormFieldArticles extends JFormFieldList
// check if button was created for article 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;

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 customadminviews.php
@ -132,16 +132,11 @@ class JFormFieldCustomadminviews extends JFormFieldList
// check if button was created for custom_admin_view 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;

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 customfilelist.php
@ -132,16 +132,11 @@ class JFormFieldCustomfilelist 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;

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;

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 customgets.php
@ -132,16 +132,11 @@ class JFormFieldCustomgets extends JFormFieldList
// check if button was created for dynamic_get 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;

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 dbtables.php
@ -132,16 +132,11 @@ class JFormFieldDbtables 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;

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 dynamicgets.php
@ -132,16 +132,11 @@ class JFormFieldDynamicgets extends JFormFieldList
// check if button was created for dynamic_get 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;

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 fields.php
@ -132,16 +132,11 @@ class JFormFieldFields extends JFormFieldList
// check if button was created for field 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;

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 fieldsmulti.php
@ -132,16 +132,11 @@ class JFormFieldFieldsmulti extends JFormFieldList
// check if button was created for field 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;

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 fieldtypes.php
@ -132,16 +132,11 @@ class JFormFieldFieldtypes extends JFormFieldList
// check if button was created for fieldtype 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;

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 maingets.php
@ -132,16 +132,11 @@ class JFormFieldMaingets extends JFormFieldList
// check if button was created for dynamic_get 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;

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 siteviews.php
@ -132,16 +132,11 @@ class JFormFieldSiteviews extends JFormFieldList
// check if button was created for site_view 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;

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 snippets.php
@ -132,16 +132,11 @@ class JFormFieldSnippets extends JFormFieldList
// check if button was created for snippet 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;