Add Translations for the chosen lib + fix select class see #7701

1.10.x
Julio Montoya 10 years ago
parent ec4c431fcb
commit b76beece44
  1. 6
      main/inc/lib/pear/HTML/QuickForm/select.php
  2. 5
      main/template/default/layout/footer.tpl

@ -82,7 +82,11 @@ class HTML_QuickForm_select extends HTML_QuickForm_element
$attributes = null
) {
if (is_array($attributes) || empty($attributes)) {
$attributes['class'] = 'form-control';
$oldClass = '';
if (!empty($attributes['class'])) {
$oldClass = $attributes['class'];
}
$attributes['class'] = $oldClass.' form-control';
}
$columnsSize = isset($attributes['cols-size']) ? $attributes['cols-size'] : null;
$this->setColumnsSize($columnsSize);

@ -152,7 +152,10 @@
// Chosen select
$(".chzn-select").chosen({
disable_search_threshold: 10
disable_search_threshold: 10,
no_results_text: '{{ 'SearchNoResultsFound' | get_lang }}',
placeholder_text_multiple: '{{ 'SelectSomeOptions' | get_lang }}',
placeholder_text_single: '{{ 'SelectAnOption' | get_lang }}'
});
// Adv multi-select search input.

Loading…
Cancel
Save