browsers that support it. Before this patch, fields using YUI autocomplete
were losing their entered data when pressing "Back" in the browser
r=mkanat, a=mkanat
<script type="text/javascript">
<!--
YAHOO.namespace('bugzilla');
- if (YAHOO.env.ua.gecko) {
+
+ if ( "onpagehide" in window || YAHOO.env.ua.gecko) {
YAHOO.util.Event._simpleRemove(window, "unload",
YAHOO.util.Event._unload);
+ YAHOO.util.Event._simpleAdd(window, "pagehide",
+ YAHOO.util.Event._unload);
}
[%# The language selector needs javascript to set its cookie,
# so it is hidden in HTML/CSS by the "bz_default_hidden" class.