Issue #1193 : Minor fixes on search info

This commit is contained in:
Zacharie
2020-07-07 15:58:57 +02:00
committed by plegall
parent 0eb915a498
commit a2d6f433b7
3 changed files with 10 additions and 12 deletions

View File

@@ -769,7 +769,7 @@ function tagListToString(list) {
var maxShown = 100;
var searchTimeOut;
var delaySearchInput = 500;
var delaySearchInput = 300;
$("#search-tag .search-input").on("input", function() {
actualPage = 1;
@@ -1018,9 +1018,9 @@ $('.tag-pagination-select input[type="radio"]').on('click',function () {
})
function updateSearchInfo () {
$('.search-info').html(str_showing.replace('%d1', $('.tag-box').length).replace('%d2', dataTags.length));
}
$(function() {
updateSearchInfo();
})
if ($('.search-input').val() != '') {
$('.search-info').html(str_filtered_on.replace('%d', dataTags.filter(isDataSearched).length));
} else {
$('.search-info').html('');
}
}

View File

@@ -24,8 +24,7 @@ var str_select_all_tag = '{'Select all %d tags'|@translate}';
var str_clear_selection = '{'Clear Selection'|@translate}';
var str_selection_done = '{'The %d tags on this page are selected'|@translate}';
var str_tag_selected = '{'<b>%d</b> tag selected'|@translate}';
var str_showing = '{'Showing <b>%d1</b> out of <b>%d2</b>'|@translate}';
var str_filtered_on = '{'Filtered on <b>%d</b> tags'|@translate}';
var str_filtered_on = '{'<b>%d</b> tags found'|@translate}';
{/footer_script}
{combine_script id='common' load='footer' path='admin/themes/default/js/common.js'}

View File

@@ -264,7 +264,7 @@ TABLE.doubleSelect SELECT.categoryList {
.search-info {
position: absolute;
left: 0px;
left: -10px;
top: 50%;
transform: translate(-100%,-50%);
font-style: italic;
@@ -3706,8 +3706,7 @@ li.plupload_delete a:hover {background: url("images/cancelhover.svg")!important;
align-items: center;
font-size: 14px;
display: none;
margin: 10px;
margin-right: 223px;
margin: 10px 243px 10px 32px;
color: #0051a5;
font-weight: 600;
}