From: Cédric C. <psy...@us...> - 2014-01-16 18:38:31
|
Update of /cvsroot/frenchmozilla/bugzilla/template/fr/default In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv3105/template/fr/default Modified Files: index.html.tmpl Log Message: Bug 673385: Dragging text into the QuickSearch field on index.cgi doesn't delete the help text in this field Index: index.html.tmpl =================================================================== RCS file: /cvsroot/frenchmozilla/bugzilla/template/fr/default/index.html.tmpl,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** index.html.tmpl 14 Jan 2014 14:12:45 -0000 1.30 --- index.html.tmpl 16 Jan 2014 18:38:29 -0000 1.31 *************** *** 21,59 **** %] - - <script type="text/javascript"> - <!-- - function onLoadActions() { - quicksearchHelpText('quicksearch_main', 'show'); - document.getElementById('quicksearch_top').focus(); - } - var quicksearch_message = "Saisir un n° de [% terms.bug %] ou des termes à rechercher"; - - function checkQuicksearch( form ) { - if (form.quicksearch.value == '' || form.quicksearch.value == quicksearch_message ) { - alert('Veuillez saisir un ou plusieurs termes de recherche d\'abord.'); - 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"> --- 21,24 ---- *************** *** 132,140 **** <div> ! <form id="quicksearchForm" name="quicksearchForm" action="buglist.cgi" ! onsubmit="return checkQuicksearch(this);"> ! <input id="quicksearch_main" type="text" name="quicksearch" title="Recherche rapide" ! onfocus="quicksearchHelpText(this.id, 'hide');" ! onblur="quicksearchHelpText(this.id, 'show');"> <input id="find" type="submit" value="Recherche rapide"> <a href="page.cgi?id=quicksearch.html" title="Aide sur la recherche rapide">[?]</a> --- 97,104 ---- <div> ! <form id="quicksearchForm" name="quicksearchForm" action="buglist.cgi"> ! <input id="quicksearch_main" name="quicksearch" title="Recherche rapide" ! placeholder="Saisir un n° de [% terms.bug %] ou des termes à rechercher" ! autofocus required> <input id="find" type="submit" value="Recherche rapide"> <a href="page.cgi?id=quicksearch.html" title="Aide sur la recherche rapide">[?]</a> |