Removed title attribute from editor buttons (fixes #539)

This commit is contained in:
Djamil Legato
2016-05-03 10:41:27 -07:00
parent 43e49e313c
commit 344722995c
4 changed files with 30 additions and 29 deletions

View File

@@ -13,6 +13,7 @@
* Fix for showing empty drop-down with only one supported language [#522](https://github.com/getgrav/grav-plugin-admin/issues/522)
* Fix for visibility toggle on new page not working [#551](https://github.com/getgrav/grav-plugin-admin/issues/551)
* Page tooltips usability issue [#496](https://github.com/getgrav/grav-plugin-admin/issues/496)
* Fix removed title attribute from editor toolbar buttons [#539](https://github.com/getgrav/grav-plugin-admin/issues/539)
# v1.1.0-beta.2
## 04/27/2016

View File

@@ -191,7 +191,7 @@ export class Toolbar {
let obj = button[key];
if (!obj.modes) { obj.modes = []; }
if (!~this.codemirror.options.ignore.indexOf(key) && (!obj.modes.length || obj.modes.indexOf(this.codemirror.options.mode) > -1)) {
let hint = obj.title ? `data-hint="${obj.title}" title="${obj.title}"` : '';
let hint = obj.title ? `data-hint="${obj.title}"` : '';
let element = $(`<li class="grav-editor-button-${key}"><a class="hint--top" ${hint}>${obj.label}</a></li>`);
(location || this.ui.navigation.find(`.grav-editor-${type} ul:not(.dropdown-menu)`)).append(element);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long