summaryrefslogtreecommitdiffstats
path: root/template/en
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2014-01-16 18:30:39 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2014-01-16 18:30:39 +0100
commitc52852accd42f4a8141f37581d86f0ed006ad393 (patch)
treee284ec1ad4ad9d516850068e4b07c24090ca4c7f /template/en
parentd77682e0d4213e8cc502b333cbd8e34d567445a4 (diff)
downloadbugzilla-c52852accd42f4a8141f37581d86f0ed006ad393.tar.gz
bugzilla-c52852accd42f4a8141f37581d86f0ed006ad393.tar.xz
Bug 673385: Dragging text into the QuickSearch field on index.cgi doesn't delete the help text in this field
r=dkl a=justdave
Diffstat (limited to 'template/en')
-rw-r--r--template/en/default/index.html.tmpl44
1 files changed, 4 insertions, 40 deletions
diff --git a/template/en/default/index.html.tmpl b/template/en/default/index.html.tmpl
index a463d1342..6904b9c94 100644
--- a/template/en/default/index.html.tmpl
+++ b/template/en/default/index.html.tmpl
@@ -17,41 +17,6 @@
style_urls = [ 'skins/standard/index.css' ]
%]
-
-<script type="text/javascript">
-<!--
-function onLoadActions() {
- quicksearchHelpText('quicksearch_main', 'show');
- document.getElementById('quicksearch_top').focus();
-}
-var quicksearch_message = "Enter [% terms.abug %] # or some search terms";
-
-function checkQuicksearch( form ) {
- if (form.quicksearch.value == '' || form.quicksearch.value == quicksearch_message ) {
- alert('Please enter one or more search terms first.');
- return false;
- }
- return true;
-}
-
-function quicksearchHelpText(el_id, action){
- var el = document.getElementById(el_id);
- if ( action == "show") {
- if( el.value == "" ) {
- el.value = quicksearch_message
- YAHOO.util.Dom.addClass(el, "quicksearch_help_text");
- }
- } else {
- if( el.value == quicksearch_message ) {
- el.value = "";
- YAHOO.util.Dom.removeClass(el, "quicksearch_help_text");
- }
- }
-}
-YAHOO.util.Event.onDOMReady(onLoadActions);
-//-->
-</script>
-
[% IF release %]
<div id="new_release">
[% IF release.data %]
@@ -128,11 +93,10 @@ YAHOO.util.Event.onDOMReady(onLoadActions);
</div>
<div>
- <form id="quicksearchForm" name="quicksearchForm" action="buglist.cgi"
- onsubmit="return checkQuicksearch(this);">
- <input id="quicksearch_main" type="text" name="quicksearch" title="Quick Search"
- onfocus="quicksearchHelpText(this.id, 'hide');"
- onblur="quicksearchHelpText(this.id, 'show');">
+ <form id="quicksearchForm" name="quicksearchForm" action="buglist.cgi">
+ <input id="quicksearch_main" name="quicksearch" title="Quick Search"
+ placeholder="Enter [% terms.abug %] # or some search terms"
+ autofocus required>
<input id="find" type="submit" value="Quick Search">
<a href="page.cgi?id=quicksearch.html" title="Quick Search help">[?]</a>
</form>