Browse Source

Fixed topic regex pattern and added search by topic links after save (#9219)

Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
for-closed-social
Alexey 〒erentyev 5 years ago
committed by Lauris BH
parent
commit
2fc3eb1d15
3 changed files with 4 additions and 4 deletions
  1. +1
    -1
      public/js/index.js
  2. +1
    -1
      public/js/index.js.map
  3. +2
    -2
      web_src/js/index.js

+ 1
- 1
public/js/index.js
File diff suppressed because it is too large
View File


+ 1
- 1
public/js/index.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
web_src/js/index.js View File

@ -3150,7 +3150,7 @@ function initTopicbar() {
const last = viewDiv.children('a').last(); const last = viewDiv.children('a').last();
for (let i = 0; i < topicArray.length; i++) { for (let i = 0; i < topicArray.length; i++) {
$(`<div class="ui small label topic" style="cursor:pointer;">${topicArray[i]}</div>`).insertBefore(last);
$(`<a class="ui repo-topic small label topic" href="${suburl}/explore/repos?q=${topicArray[i]}&topic=1">${topicArray[i]}</a>`).insertBefore(last);
} }
} }
editDiv.css('display', 'none'); editDiv.css('display', 'none');
@ -3277,7 +3277,7 @@ function initTopicbar() {
rules: [ rules: [
{ {
type: 'validateTopic', type: 'validateTopic',
value: /^[a-z0-9][a-z0-9-]{1,35}$/,
value: /^[a-z0-9][a-z0-9-]{0,35}$/,
prompt: topicPrompts.formatPrompt prompt: topicPrompts.formatPrompt
}, },
{ {

Loading…
Cancel
Save