提交 c690b1fb 编写于 作者: K Kohsuke Kawaguchi

Fixed a compatibility issue with IE.

(and replaced custom event addition with simpler one from Prototype)
上级 e19c756c
......@@ -36,7 +36,7 @@ THE SOFTWARE.
TODO: use human-readable ID
-->
<script>
window.addEventListener("load",function(){
Event.observe(window,"load",function(){
/** @type section.SectionNode */
var outline = section.buildTree();
var menu = new breadcrumbs.ContextMenu();
......
......@@ -15,13 +15,13 @@ var breadcrumbs = (function() {
return (icon!=null ? "<img src='"+icon+"' width=24 height=24 style='margin: 2px;' alt=''> " : "")+displayName;
}
window.addEventListener("load",function(){
Event.observe(window,"load",function(){
menu = new YAHOO.widget.Menu("breadcrumb-menu", {position:"dynamic", hidedelay:1000});
});
jenkinsRules["#breadcrumbs LI"] = function (e) {
// when the mouse hovers over LI, activate the menu
e.addEventListener("mouseover", function () {
$(e).observe("mouseover", function () {
function showMenu(items) {
menu.hide();
menu.cfg.setProperty("context", [e, "tl", "bl"]);
......
......@@ -1486,7 +1486,7 @@ function refillOnChange(e,onChange) {
if (window.YUI!=null) YUI.log("Unable to find a nearby control of the name "+name,"warn")
return;
}
try { c.addEventListener("change",h,false); } catch (ex) { c.attachEvent("onchange",h); }
$(c).observe("change",h);
deps.push({name:Path.tail(name),control:c});
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册