Commit 4c2a23f4 authored by Guy Pyrzak's avatar Guy Pyrzak

Bug 607675: In Firefox, YAHOO.util.Event.addListener/on events no longer exist…

Bug 607675: In Firefox, YAHOO.util.Event.addListener/on events no longer exist after a user clicks back r:LpSolit, a:mkanat
parent 69267565
......@@ -161,12 +161,14 @@
<script type="text/javascript">
<!--
YAHOO.namespace('bugzilla');
YAHOO.util.Event.addListener = function (el, sType, fn, obj, overrideContext) {
if ( ("onpagehide" in window || YAHOO.env.ua.gecko) && sType === "unload") { sType = "pagehide"; };
var capture = ((sType == "focusin" || sType == "focusout") && !YAHOO.env.ua.ie) ? true : false;
return this._addListener(el, this._getType(sType), fn, obj, overrideContext, capture);
};
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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment