Mercurial > bugzilla-dashboard
comparison 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 |
comparison
equal
deleted
inserted
replaced
50:7a0bafc5379a | 51:3af7cd6ae638 |
---|---|
51 } | 51 } |
52 }); | 52 }); |
53 | 53 |
54 $("#header .menu li").click( | 54 $("#header .menu li").click( |
55 function openDialog(event) { | 55 function openDialog(event) { |
56 var dialog = $("#" + this.title); | 56 var name = this.getAttribute("data-dialog"); |
57 var dialog = $("#" + name); | |
57 if (dialog.length == 0) | 58 if (dialog.length == 0) |
58 throw new Error("dialog not found: " + this.title); | 59 throw new Error("dialog not found: " + name); |
59 dialog.fadeIn(); | 60 dialog.fadeIn(); |
60 }); | 61 }); |
61 | 62 |
62 $(".dialog").click( | 63 $(".dialog").click( |
63 function dismissDialogOnOutsideClick(event) { | 64 function dismissDialogOnOutsideClick(event) { |