|
|
@@ -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() |
|
|
|