Avoid data-original-title hack

This commit is contained in:
John Firebaugh
2013-02-12 11:31:07 -08:00
parent e92d991677
commit 50f5a43efa
+6 -4
View File
@@ -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() {