diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2011-03-01 13:37:09 -0500 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2011-03-01 13:37:09 -0500 |
commit | 5c4b25fbcfc737eea1144340be4909b6ba35841a (patch) | |
tree | 07c33b057588d09c52d577704f2e353d59b5098e | |
parent | 6900b7a8dfd6d75653d6254a8302f2ec8eb9e599 (diff) | |
download | askbot-5c4b25fbcfc737eea1144340be4909b6ba35841a.tar.gz askbot-5c4b25fbcfc737eea1144340be4909b6ba35841a.tar.bz2 askbot-5c4b25fbcfc737eea1144340be4909b6ba35841a.zip |
increased max number of wildcard subtags to 20 from 10
-rw-r--r-- | askbot/skins/default/media/js/tag_selector.js | 4 | ||||
-rw-r--r-- | askbot/views/commands.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/askbot/skins/default/media/js/tag_selector.js b/askbot/skins/default/media/js/tag_selector.js index 979e3c3a..6b50a134 100644 --- a/askbot/skins/default/media/js/tag_selector.js +++ b/askbot/skins/default/media/js/tag_selector.js @@ -80,9 +80,9 @@ TagDetailBox.prototype.renderFor = function(wildcard){ me._is_blank = false; me.wildcard = wildcard; var tag_count = data['tag_count']; - if (tag_count > 10){ + if (tag_count > 20){ var fmts = gettext('and %s more, not shown...'); - var footer_text = interpolate(fmts, [tag_count - 10]); + var footer_text = interpolate(fmts, [tag_count - 20]); me._footer.html(footer_text); me._footer.show(); } else { diff --git a/askbot/views/commands.py b/askbot/views/commands.py index fb638e63..2fd0978e 100644 --- a/askbot/views/commands.py +++ b/askbot/views/commands.py @@ -371,7 +371,7 @@ def get_tags_by_wildcard(request): [request.GET['wildcard'],] ) count = matching_tags.count() - names = matching_tags.values_list('name', flat = True)[:10] + names = matching_tags.values_list('name', flat = True)[:20] re_data = simplejson.dumps({'tag_count': count, 'tag_names': list(names)}) return HttpResponse(re_data, mimetype = 'application/json') |