1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-05-17 00:08:17 +03:00

подправлена работа с тегами

This commit is contained in:
Mzhelskiy Maxim 2008-10-07 18:19:56 +00:00
parent 315fcb5f1c
commit b9268bd1c3
4 changed files with 6 additions and 4 deletions

View file

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

View file

@ -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
});
});

View file

@ -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
});
});

View file

@ -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
});
});