mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-08-01 01:49:57 +02:00
Removed title attribute from editor buttons (fixes #539)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
26
themes/grav/js/admin.min.js
vendored
26
themes/grav/js/admin.min.js
vendored
File diff suppressed because one or more lines are too long
30
themes/grav/js/vendor.min.js
vendored
30
themes/grav/js/vendor.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user