mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-05-17 00:08:17 +03:00
подправлена работа с тегами
This commit is contained in:
parent
315fcb5f1c
commit
b9268bd1c3
|
@ -505,10 +505,12 @@ class ActionTopic extends Action {
|
|||
$sTags=getRequest('topic_tags');
|
||||
$aTags=explode(',',$sTags);
|
||||
$aTagsNew=array();
|
||||
$aTagsNewLow=array();
|
||||
foreach ($aTags as $sTag) {
|
||||
$sTag=trim($sTag);
|
||||
if (func_check($sTag,'text',2,50)) {
|
||||
if (func_check($sTag,'text',2,50) and !in_array(mb_strtolower($sTag,'UTF-8'),$aTagsNewLow)) {
|
||||
$aTagsNew[]=$sTag;
|
||||
$aTagsNewLow[]=mb_strtolower($sTag,'UTF-8');
|
||||
}
|
||||
}
|
||||
if (!count($aTagsNew)) {
|
||||
|
|
|
@ -13,7 +13,7 @@ document.addEvent('domready', function() {
|
|||
new Autocompleter.Request.HTML(inputTags, DIR_WEB_ROOT+'/include/ajax/tagAutocompleter.php', {
|
||||
'indicatorClass': 'autocompleter-loading', // class added to the input during request
|
||||
'minLength': 2, // We need at least 1 character
|
||||
'selectMode': 'type-ahead', // Instant completion
|
||||
'selectMode': 'pick', // Instant completion
|
||||
'multiple': true // Tag support, by default comma separated
|
||||
});
|
||||
});
|
||||
|
|
|
@ -13,7 +13,7 @@ document.addEvent('domready', function() {
|
|||
new Autocompleter.Request.HTML(inputTags, DIR_WEB_ROOT+'/include/ajax/tagAutocompleter.php', {
|
||||
'indicatorClass': 'autocompleter-loading', // class added to the input during request
|
||||
'minLength': 2, // We need at least 1 character
|
||||
'selectMode': 'type-ahead', // Instant completion
|
||||
'selectMode': 'pick', // Instant completion
|
||||
'multiple': true // Tag support, by default comma separated
|
||||
});
|
||||
});
|
||||
|
|
|
@ -13,7 +13,7 @@ document.addEvent('domready', function() {
|
|||
new Autocompleter.Request.HTML(inputTags, DIR_WEB_ROOT+'/include/ajax/tagAutocompleter.php', {
|
||||
'indicatorClass': 'autocompleter-loading', // class added to the input during request
|
||||
'minLength': 2, // We need at least 1 character
|
||||
'selectMode': 'type-ahead', // Instant completion
|
||||
'selectMode': 'pick', // Instant completion
|
||||
'multiple': true // Tag support, by default comma separated
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue