Skip to content

Commit

Permalink
Merge pull request #9671 from infograf768/advancedSelect
Browse files Browse the repository at this point in the history
[imp] Use advancedSelect for mod_languages and finder
  • Loading branch information
rdeutz committed Apr 12, 2016
2 parents ceff297 + 12edab7 commit ad74f03
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
9 changes: 6 additions & 3 deletions components/com_finder/helpers/html/filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,8 @@ public static function select($idxQuery, $options)
$html .= '</label>';
$html .= '<br />';
$html .= JHtml::_(
'select.genericlist', $branches[$bk]->nodes, 't[]', 'class="inputbox"', 'id', 'title', $active,
'select.genericlist',
$branches[$bk]->nodes, 't[]', 'class="inputbox advancedSelect"', 'id', 'title', $active,
'tax-' . JFilterOutput::stringUrlSafe($bv->title)
);
$html .= '</div>';
Expand Down Expand Up @@ -438,7 +439,8 @@ public static function dates($idxQuery, $options)
$html .= '</label>';
$html .= '<br />';
$html .= JHtml::_(
'select.genericlist', $operators, 'w1', 'class="inputbox filter-date-operator"', 'value', 'text', $idxQuery->when1, 'finder-filter-w1'
'select.genericlist',
$operators, 'w1', 'class="inputbox filter-date-operator advancedSelect"', 'value', 'text', $idxQuery->when1, 'finder-filter-w1'
);
$html .= JHtml::calendar($idxQuery->date1, 'd1', 'filter_date1', '%Y-%m-%d', $attribs);
$html .= '</li>';
Expand All @@ -450,7 +452,8 @@ public static function dates($idxQuery, $options)
$html .= '</label>';
$html .= '<br />';
$html .= JHtml::_(
'select.genericlist', $operators, 'w2', 'class="inputbox filter-date-operator"', 'value', 'text', $idxQuery->when2, 'finder-filter-w2'
'select.genericlist',
$operators, 'w2', 'class="inputbox filter-date-operator advancedSelect"', 'value', 'text', $idxQuery->when2, 'finder-filter-w2'
);
$html .= JHtml::calendar($idxQuery->date2, 'd2', 'filter_date2', '%Y-%m-%d', $attribs);
$html .= '</li>';
Expand Down
2 changes: 1 addition & 1 deletion components/com_finder/views/search/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
defined('_JEXEC') or die;

JHtml::_('behavior.core');
JHtml::_('formbehavior.chosen', 'select');
JHtml::_('formbehavior.chosen');
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
JHtml::stylesheet('com_finder/finder.css', false, true, false);
?>
Expand Down
2 changes: 1 addition & 1 deletion modules/mod_finder/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
JHtml::addIncludePath(JPATH_SITE . '/components/com_finder/helpers/html');

JHtml::_('jquery.framework');
JHtml::_('formbehavior.chosen', 'select');
JHtml::_('formbehavior.chosen');
JHtml::_('bootstrap.tooltip');

// Load the smart search component language file.
Expand Down
4 changes: 2 additions & 2 deletions modules/mod_languages/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
JHtml::_('stylesheet', 'mod_languages/template.css', array(), true);
if ($params->get('dropdown', 1))
{
JHtml::_('formbehavior.chosen', 'select');
JHtml::_('formbehavior.chosen');
}
?>
<div class="mod-languages<?php echo $moduleclass_sfx; ?>">
Expand All @@ -22,7 +22,7 @@

<?php if ($params->get('dropdown', 1)) : ?>
<form name="lang" method="post" action="<?php echo htmlspecialchars(JUri::current()); ?>">
<select class="inputbox" onchange="document.location.replace(this.value);" >
<select class="inputbox advancedSelect" onchange="document.location.replace(this.value);" >
<?php foreach ($list as $language) : ?>
<option dir=<?php echo $language->rtl ? '"rtl"' : '"ltr"'; ?> value="<?php echo $language->link; ?>" <?php echo $language->active ? 'selected="selected"' : ''; ?>>
<?php echo $language->title_native; ?></option>
Expand Down

0 comments on commit ad74f03

Please sign in to comment.