Skip to content

Commit

Permalink
Removed title attribute from editor buttons (fixes #539)
Browse files Browse the repository at this point in the history
  • Loading branch information
w00fz committed May 3, 2016
1 parent 43e49e3 commit 3447229
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 29 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion themes/grav/app/forms/fields/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
26 changes: 13 additions & 13 deletions themes/grav/js/admin.min.js

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions themes/grav/js/vendor.min.js

Large diffs are not rendered by default.

0 comments on commit 3447229

Please sign in to comment.