summaryrefslogtreecommitdiffstats
path: root/template/en/default/index.html.tmpl
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-07-02 05:48:27 +0200
committerByron Jones <bjones@mozilla.com>2013-07-02 05:48:27 +0200
commit975dd38482945e10cf0ea2f020856653298d5c28 (patch)
treeec689f9a542b24ff57da88c1ddfd50471944b582 /template/en/default/index.html.tmpl
parenta657f216b7243f2fd8ff88fec10b7922c530ec92 (diff)
downloadbugzilla-975dd38482945e10cf0ea2f020856653298d5c28.tar.gz
bugzilla-975dd38482945e10cf0ea2f020856653298d5c28.tar.xz
Bug 888806: Bugzilla login field should use "placeholder" HTML5 attribute instead of JavaScript
Diffstat (limited to 'template/en/default/index.html.tmpl')
-rw-r--r--template/en/default/index.html.tmpl39
1 files changed, 5 insertions, 34 deletions
diff --git a/template/en/default/index.html.tmpl b/template/en/default/index.html.tmpl
index 29bc9adb6..fa2a4d126 100644
--- a/template/en/default/index.html.tmpl
+++ b/template/en/default/index.html.tmpl
@@ -38,40 +38,13 @@
<script type="text/javascript">
-<!--
-function onLoadActions() {
- quicksearchHelpText('quicksearch_main', 'show');
- if( window.external.AddSearchProvider ){
- YAHOO.util.Dom.removeClass('quicksearch_plugin', 'bz_default_hidden');
- }
- 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 ) {
+ if (form.quicksearch.value == '') {
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");
- }
+ return false;
}
+ return true;
}
-YAHOO.util.Event.onDOMReady(onLoadActions);
-//-->
</script>
[% IF release %]
@@ -144,10 +117,8 @@ YAHOO.util.Event.onDOMReady(onLoadActions);
onsubmit="return checkQuicksearch(this);">
<div>
<input id="quicksearch_main" type="text" name="quicksearch"
- title="Quick Search"
- onfocus="quicksearchHelpText(this.id, 'hide');"
- onblur="quicksearchHelpText(this.id, 'show');"
- >
+ placeholder="Enter [% terms.abug %] number or some search terms"
+ title="Quick Search">
<input id="find" type="submit" value="Quick Search">
<ul class="additional_links" id="quicksearch_links">
<li>