[embed] Fix bug 58131

This commit is contained in:
JuliaSvinareva 2022-07-15 19:00:23 +03:00
parent cd0be026e1
commit ade9cbd6b8

View file

@ -66,9 +66,9 @@ common.view.SearchBar = new(function() {
},
disableNavButtons: function (resultNumber, allResults) {
var disable = $('#search-bar-text').val() === '';
$('#search-bar-back').attr({disabled: disable || !allResults || resultNumber === 0});
$('#search-bar-next').attr({disabled: disable || resultNumber + 1 === allResults});
var disable = $('#search-bar-text').val() === '' || !allResults;
$('#search-bar-back').attr({disabled: disable});
$('#search-bar-next').attr({disabled: disable});
},
textFind: 'Find'