mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-08 01:32:59 +02:00
related to #1931 Changed filter btn title, fixed filetypes widget bug where it disapears when empty
This commit is contained in:
@@ -424,4 +424,5 @@ $lang['Album description'] = 'Album description';
|
||||
$lang['No results are available.'] = 'No results are available.';
|
||||
$lang['You can try to edit your filters and perform a new search.'] = 'You can try to edit your filters and perform a new search.';
|
||||
$lang['File type'] = 'File type';
|
||||
$lang['Choose filters'] = 'Choose filters';
|
||||
?>
|
||||
|
||||
@@ -429,3 +429,4 @@ $lang['Album description'] = 'Description de l\'album';
|
||||
$lang['No results are available.'] = 'Aucun résultat n\'est disponible';
|
||||
$lang['You can try to edit your filters and perform a new search.'] = 'Vous pouvez tenter de modifier vos filtres et effectuer une nouvelle recherche';
|
||||
$lang['File type'] = 'Type de fichier';
|
||||
$lang['Choose filters'] = 'Choisir les filtres';
|
||||
|
||||
@@ -195,7 +195,7 @@ $(document).ready(function () {
|
||||
|
||||
if (global_params.fields.filetypes && global_params.fields.filetypes.length > 0) {
|
||||
$(".filter-filetypes").addClass("filter-filled");
|
||||
$(".filter.filter-filetypes .search-words").text(filetypes_search_str.slice(0, -2));
|
||||
$(".filter.filter-filetypes .search-words").text(filetypes_search_str.toUpperCase().slice(0, -2));
|
||||
|
||||
$(".filetypes-option input").each(function () {
|
||||
if (global_params.fields.filetypes.includes($(this).attr('name'))) {
|
||||
@@ -542,7 +542,7 @@ $(document).ready(function () {
|
||||
|
||||
global_params.fields.filetypes = filetypes_array;
|
||||
|
||||
PS_params.filetypes = filetypes_array
|
||||
PS_params.filetypes = filetypes_array.length > 0 ? filetypes_array : '';
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -197,7 +197,7 @@ str_filetypes_widget_label = "{'File type'|@translate}";
|
||||
<div class="filter-manager-popin-container">
|
||||
<span class="pwg-icon-cancel filter-manager-close"></span>
|
||||
|
||||
<div class="mcs-popin-title">{'Filtres'|@translate}</div>
|
||||
<div class="mcs-popin-title">{'Choose filters'|@translate}</div>
|
||||
|
||||
<div class="filter-manager-controller-container">
|
||||
<label>
|
||||
@@ -238,7 +238,7 @@ str_filetypes_widget_label = "{'File type'|@translate}";
|
||||
</div>
|
||||
</div>
|
||||
<div class="filter-manager">
|
||||
<span class="mcs-icon pwg-icon-cog"></span>{'Filtres'|@translate}
|
||||
<span class="mcs-icon pwg-icon-selecters"></span>{'Choose filters'|@translate}
|
||||
</div>
|
||||
<i class="filter-spinner pwg-icon-spin6 animate-spin"></i>
|
||||
|
||||
@@ -444,7 +444,7 @@ str_filetypes_widget_label = "{'File type'|@translate}";
|
||||
<div class="filetypes-option">
|
||||
<input type="checkbox" id="filetype-{$k}" name="{$k}">
|
||||
<label for="filetype-{$k}">
|
||||
<span class="mcs-icon pwg-icon-cog checked-icon"></span>
|
||||
<span class="mcs-icon pwg-icon-checkmark checked-icon"></span>
|
||||
<span class="ext-name">{$k}</span>
|
||||
<span class="ext-badge">{$filetypes}</span>
|
||||
</label>
|
||||
|
||||
Reference in New Issue
Block a user