Changeset 51 for branches/quick_search
- Timestamp:
- 02/15/09 20:13:19 (3 years ago)
- Location:
- branches/quick_search
- Files:
-
- 2 modified
-
manifest.xml (modified) (2 diffs)
-
scripts.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/quick_search/manifest.xml
r47 r51 4 4 <id>quick_search</id> 5 5 <title>Quick Search</title> 6 <version>1.0 </version>6 <version>1.0.1</version> 7 7 <description>Allows quickly search for topics and posts</description> 8 8 <author>daris</author> … … 12 12 13 13 <hook id="hd_head"><![CDATA[ 14 14 global $lang_search; 15 15 require_once FORUM_ROOT.'lang/'.$forum_user['language'].'/search.php'; 16 16 $language_js = 'var lang_search = {\'Display results\' : \''.$lang_search['Display results'].'\', \'Show as topics\' : \''.$lang_search['Show as topics'].'\', \'Show as posts\' : \''.$lang_search['Show as posts'].'\', \'Submit search\' : \''.$lang_search['Submit search'].'\', \'Perform new search\' : \''.$lang_search['Perform new search'].'\'};'; -
branches/quick_search/scripts.js
r47 r51 10 10 11 11 /* 12 Shows popup popup12 Shows popup 13 13 */ 14 14 function quick_search() … … 28 28 popup.onmouseout = function () {quick_search_popup_hovered = false} 29 29 30 popup.innerHTML = '<form action="' + url_search + '" method="get"><div>' +30 popup.innerHTML = '<form id="quick_search_form" action="' + url_search + '" method="get"><div>' + 31 31 '<input type="hidden" name="action" value="search" />' + 32 '<input type="text" size="20" id="quick_search" name="keywords" /><input type="submit" value="' + lang_search['Submit search'] + '" name="search" />' +32 '<input type="text" size="20" id="quick_search" name="keywords" onkeypress="quick_search_onchange(event)" /><input type="submit" value="' + lang_search['Submit search'] + '" name="search" />' + 33 33 '</div><div>' + lang_search['Display results'] + ': ' + 34 34 '<input type="radio" id="show_as_topics" name="show_as" value="topics" checked="checked" /><label for="show_as_topics">' + lang_search['Show as topics'] + '</label> ' + … … 54 54 55 55 /* 56 Hides popup popup56 Hides popup 57 57 */ 58 58 function hide_quick_search_popup() … … 66 66 67 67 68 69 function quick_search_onchange(e) 70 { 71 if (e.keyCode == 13) 72 document.getElementById('quick_search_form').submit(); 73 } 68 74 69 75 /*