Browse Source

Merge pull request '修复前端输入主题回车不检查格式问题' (#351) from fix-244 into V20210910

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/351
Reviewed-by: lewis <747342561@qq.com>
tags/v1.21.9.1^2
lewis 4 years ago
parent
commit
f3c657d797
1 changed files with 1 additions and 7 deletions
  1. +1
    -7
      web_src/js/index.js

+ 1
- 7
web_src/js/index.js View File

@@ -4113,13 +4113,7 @@ function initTopicbar() {
$.fn.form.settings.rules.validateTopic = function (_values, regExp) {
const topics = topicDropdown.children('a.ui.label');
const status =
topics.length === 0 ||
topics
.last()
.attr('data-value')
.match(regExp) || topics
.last()
.attr('data-value').length <= 35;
topics.length === 0 || (topics.last().attr('data-value').match(regExp) !== null && topics.last().attr('data-value').length <= 35);
if (!status) {
topics
.last()


Loading…
Cancel
Save