summaryrefslogtreecommitdiffstats
path: root/askbot/templates/embed/ask_by_widget.html
diff options
context:
space:
mode:
Diffstat (limited to 'askbot/templates/embed/ask_by_widget.html')
-rw-r--r--askbot/templates/embed/ask_by_widget.html12
1 files changed, 7 insertions, 5 deletions
diff --git a/askbot/templates/embed/ask_by_widget.html b/askbot/templates/embed/ask_by_widget.html
index 4cec5f6d..ef139d1c 100644
--- a/askbot/templates/embed/ask_by_widget.html
+++ b/askbot/templates/embed/ask_by_widget.html
@@ -213,13 +213,15 @@
<script type="text/javascript" src='{{"/js/live_search_new_thread.js"|media}}'></script>
<script type="text/javascript" charset="utf-8">
- var minSearchWordLength = {{settings.MIN_SEARCH_WORD_LENGTH}};
- askbot['urls']['api_get_questions'] = '{% url api_get_questions %}';
+ askbot['settings']['minSearchWordLength'] = {{settings.MIN_SEARCH_WORD_LENGTH}};
+ askbot['urls']['titleSearch'] = '{% url title_search %}';
askbot['urls']['upload'] = '{% url upload %}';
$(document).ready(function(){
- $("#id_title").focus();
- $("#id_title").addClass('questionTitleInput');
- liveSearchNewThreadInit(true);
+ var searchInput = $('#id_title');
+ searchInput.addClass('questionTitleInput');
+ var search = new FullTextSearch();
+ search.decorate(searchInput);
+ searchInput.focus();
});
</script>
{% endblock %}