Skip to content

Commit

Permalink
Merge pull request #73 from humhub/fix/72-filters
Browse files Browse the repository at this point in the history
Fix search and translated filters
  • Loading branch information
luke- authored Sep 23, 2024
2 parents 383c25e + 479e909 commit a72bc88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/js/humhub.translation.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ humhub.module('translation', function(module, require, $) {

this.searchTimeout = setTimeout(function() {
var inputValue = evt.$trigger.val();
$("#words").find('.row').each(function(indx, el){
$("#words").find('.item').each(function(indx, el){
var $row = $(this);
if (inputValue && !new RegExp(escapeRegExp(inputValue), 'i').test($row.text())){
$row.hide();
Expand Down Expand Up @@ -78,7 +78,7 @@ humhub.module('translation', function(module, require, $) {

Form.prototype.updateEmptyFilterState = function() {
this.$.find('.translation.translated').each(function() {
var $row = $(this).closest('.row');
var $row = $(this).closest('.item');
if(stateHideTranslated) {
$row.hide();
$('#toggle-empty-filter').find('i').removeClass('fa-toggle-off').addClass('fa-toggle-on');
Expand Down

0 comments on commit a72bc88

Please sign in to comment.