From 50f5a43efaa712941d49c95163a3ffec01854e6a Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 12 Feb 2013 11:31:07 -0800 Subject: [PATCH] Avoid data-original-title hack --- js/id/ui.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/js/id/ui.js b/js/id/ui.js index 9fec273cd..60b241b7e 100644 --- a/js/id/ui.js +++ b/js/id/ui.js @@ -43,10 +43,12 @@ iD.ui = function(context) { .enter().append('button') .attr('tabindex', -1) .attr('class', function(mode) { return mode.title + ' add-button col3'; }) - .call(bootstrap.tooltip().placement('bottom').html(true)) - .attr('data-original-title', function(mode) { - return hintprefix(mode.key, mode.description); - }) + .call(bootstrap.tooltip() + .placement('bottom') + .html(true) + .title(function(mode) { + return hintprefix(mode.key, mode.description); + })) .on('click.editor', function(mode) { context.enter(mode); }); function disableTooHigh() {