# HG changeset patch # User Atul Varma # Date 1272169858 25200 # Node ID 3af7cd6ae638b3623c7eebe4611bbf5706fa7599 # Parent 7a0bafc5379a86989009ebddafec49224a02ccdc changed menu items to use data-dialog attr instead of title, which sets tooltips. diff -r 7a0bafc5379a -r 3af7cd6ae638 js/modules/app.js --- 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(); }); diff -r 7a0bafc5379a -r 3af7cd6ae638 main.html --- a/main.html Sat Apr 24 21:21:08 2010 -0700 +++ b/main.html Sat Apr 24 21:30:58 2010 -0700 @@ -9,13 +9,13 @@