diff options
-rw-r--r-- | askbot/templates/meta/bottom_scripts.html | 6 | ||||
-rw-r--r-- | askbot/templates/widgets/secondary_header.html | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/askbot/templates/meta/bottom_scripts.html b/askbot/templates/meta/bottom_scripts.html index 5c398358..f1180339 100644 --- a/askbot/templates/meta/bottom_scripts.html +++ b/askbot/templates/meta/bottom_scripts.html @@ -75,8 +75,10 @@ searchInput.focus(); putCursorAtEnd(searchInput); } - - if (inArray(activeTab, ['questions', 'badges', 'ask']) && searchInput.length) { + + var haveFullTextSearchTab = inArray(activeTab, ['questions', 'badges', 'ask']); + var haveUserProfilePage = $('body').hasClass('user-profile-page'); + if ((haveUserProfilePage || haveFullTextSearchTab) && searchInput.length) { var search = new FullTextSearch(); askbot['controllers'] = askbot['controllers'] || {}; askbot['controllers']['fullTextSearch'] = search; diff --git a/askbot/templates/widgets/secondary_header.html b/askbot/templates/widgets/secondary_header.html index f3f78fa7..69e5742c 100644 --- a/askbot/templates/widgets/secondary_header.html +++ b/askbot/templates/widgets/secondary_header.html @@ -10,6 +10,8 @@ <form {% if active_tab == "tags" %} action="{% url tags %}" + {% elif page_class == 'user-profile-page' %} + action="{% url questions %}" id="searchForm" {% elif active_tab == "users" %} action="" {% else %} |