Mercurial > bugzilla-dashboard
diff js/modules/app.js @ 51:3af7cd6ae638
changed menu items to use data-dialog attr instead of title, which sets tooltips.
author | Atul Varma <avarma@mozilla.com> |
---|---|
date | Sat, 24 Apr 2010 21:30:58 -0700 |
parents | 7a0bafc5379a |
children | aa9b33b10820 |
line wrap: on
line diff
--- a/js/modules/app.js Sat Apr 24 21:21:08 2010 -0700 +++ b/js/modules/app.js Sat Apr 24 21:30:58 2010 -0700 @@ -53,9 +53,10 @@ $("#header .menu li").click( function openDialog(event) { - var dialog = $("#" + this.title); + var name = this.getAttribute("data-dialog"); + var dialog = $("#" + name); if (dialog.length == 0) - throw new Error("dialog not found: " + this.title); + throw new Error("dialog not found: " + name); dialog.fadeIn(); });