diff options
author | lpsolit%gmail.com <> | 2007-02-28 22:58:22 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-02-28 22:58:22 +0100 |
commit | e4bb080df93feb9751079a931f10b25cd8f66961 (patch) | |
tree | d7f12732cca18518246dddf4c31787ceffb01c46 /template/en/default/search | |
parent | 41732933eeb2f25abdd479e5a024cd258c502fd3 (diff) | |
download | bugzilla-e4bb080df93feb9751079a931f10b25cd8f66961.tar.gz bugzilla-e4bb080df93feb9751079a931f10b25cd8f66961.tar.xz |
Bug 234226: "Find a specific bug" shouldn't allow empty search - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=justdave
Diffstat (limited to 'template/en/default/search')
-rw-r--r-- | template/en/default/search/search-specific.html.tmpl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/template/en/default/search/search-specific.html.tmpl b/template/en/default/search/search-specific.html.tmpl index 2d7eb945d..d93abd883 100644 --- a/template/en/default/search/search-specific.html.tmpl +++ b/template/en/default/search/search-specific.html.tmpl @@ -109,8 +109,12 @@ for "crash secure SSL flash". <tr> <td></td> <td> - <input type="submit" id="search" value="Search"> - </td> + <input type="submit" id="search" value="Search" + onclick="if (this.form.content.value == '') + {alert('The Words field cannot be empty. You have to ' + + 'enter at least one word in your search criteria.'); + return false;} return true;"> + </td> </tr> </table> </form> |