1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-26 03:30:48 +03:00

Фикс аякс фильтра

Если ничего не находило, т.е. 0 элементов, выводило в заголовке "Найден %%count%% блог;Найдено %%count%% блога;Найдено %%count%% блогов".
This commit is contained in:
Gran 2016-05-26 21:18:11 +03:00
parent ee99089fd2
commit 3481cb70e6

View file

@ -219,7 +219,7 @@
this.elements.list.hide();
}
if ( this.option( 'i18n.title' ) && this.elements.title.length ) {
if ( this.option( 'i18n.title' ) && this.elements.title.length && response.searchCount) {
this.elements.title.show().text( this._i18n( 'title', response.searchCount ) );
}
@ -233,4 +233,4 @@
window.history.pushState( {}, 'Search', window.location.origin + window.location.pathname + '?' + $.param( this.option( 'params' ) ) );
}
});
})( jQuery );
})( jQuery );