fix: remove unused code

isekai-main
Barış Soner Uşaklı 3 years ago
parent bda5d14425
commit 50b2ebf844

@ -32,12 +32,6 @@ define('forum/topic', [
navigator.disable();
components.get('navbar/title').find('span').text('').hide();
app.removeAlert('bookmark');
require(['search'], function (search) {
if (search.topicDOM.active) {
search.topicDOM.end();
}
});
}
});
@ -79,18 +73,6 @@ define('forum/topic', [
};
function handleTopicSearch() {
$('.topic-search').off('click')
.on('click', '.prev', function () {
require(['search'], function (search) {
search.topicDOM.prev();
});
})
.on('click', '.next', function () {
require(['search'], function (search) {
search.topicDOM.next();
});
});
if (config.topicSearchEnabled) {
require(['mousetrap'], function (mousetrap) {
mousetrap.bind(['command+f', 'ctrl+f'], function (e) {

Loading…
Cancel
Save