mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-16 21:40:23 +01:00
Compare commits
17 Commits
custom-use
...
v1.18.6-be
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f1e2af2390 | ||
|
|
c28ac8ec52 | ||
|
|
400153f5f5 | ||
|
|
0f29433baf | ||
|
|
ebe7f11d0b | ||
|
|
c248805165 | ||
|
|
830cddfb40 | ||
|
|
abbbc3d7c2 | ||
|
|
8593ea87e9 | ||
|
|
1d401329ee | ||
|
|
9e52236973 | ||
|
|
eff03e4b57 | ||
|
|
854c078b73 | ||
|
|
36653525bd | ||
|
|
0409403f5b | ||
|
|
839673d321 | ||
|
|
d220d1d461 |
@@ -2,7 +2,7 @@
|
||||
"name": "nodebb",
|
||||
"license": "GPL-3.0",
|
||||
"description": "NodeBB Forum",
|
||||
"version": "1.18.4",
|
||||
"version": "1.18.5",
|
||||
"homepage": "http://www.nodebb.org",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -182,4 +182,4 @@
|
||||
"url": "https://github.com/barisusakli"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -593,11 +593,14 @@ app.cacheBuster = null;
|
||||
});
|
||||
|
||||
let ajaxified = false;
|
||||
hooks.on('action:ajaxify.end', function () {
|
||||
if (!ajaxify.isCold()) {
|
||||
ajaxified = true;
|
||||
}
|
||||
require(['hooks'], function (hooks) {
|
||||
hooks.on('action:ajaxify.end', function () {
|
||||
if (!ajaxify.isCold()) {
|
||||
ajaxified = true;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
inputEl.on('focus', function () {
|
||||
mousedownOnResults = false;
|
||||
const query = inputEl.val();
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -18,6 +18,7 @@ module.exports = function (Categories) {
|
||||
let cids = await findCids(query, data.hardCap);
|
||||
|
||||
const result = await plugins.hooks.fire('filter:categories.search', {
|
||||
data: data,
|
||||
cids: cids,
|
||||
uid: uid,
|
||||
});
|
||||
|
||||
@@ -58,7 +58,7 @@ async function searchInContent(data) {
|
||||
}
|
||||
let pids = [];
|
||||
let tids = [];
|
||||
const inTopic = data.query.match(/^in:topic-([\d]+) /);
|
||||
const inTopic = String(data.query || '').match(/^in:topic-([\d]+) /);
|
||||
if (inTopic) {
|
||||
const tid = inTopic[1];
|
||||
const cleanedTerm = data.query.replace(inTopic[0], '');
|
||||
|
||||
Reference in New Issue
Block a user