Added titles to menu

This commit is contained in:
mokhov
2015-06-23 22:27:48 +03:00
parent 5ba6c431f7
commit dbf43a65f5

View File

@@ -76,9 +76,11 @@ module.exports = function (bt) {
items += 2;
content.push({
elem: 'plus'
elem: 'plus',
alt: 'Увеличить размер шрифта'
}, {
elem: 'minus'
elem: 'minus',
alt: 'Уменьшить размер шрифта'
});
}
if (ctx.getParam('footnotes')) {
@@ -106,6 +108,7 @@ module.exports = function (bt) {
bt.match('controls*__footnotes', function (ctx) {
ctx.setState('mode', ctx.getParam('footnotes') || 'appendix');
ctx.setAttr('title', 'Изменить режим отображения сносок');
ctx.setContent([{
elem: 'footnotes-anchor'
}, {
@@ -124,6 +127,7 @@ module.exports = function (bt) {
bt.match('controls*__pages', function (ctx) {
ctx.setState('mode', ctx.getParam('pages') || 'auto');
ctx.setAttr('title', 'Изменить режим отображения страниц');
ctx.setContent([{
elem: 'pages-one'
}, {
@@ -131,4 +135,7 @@ module.exports = function (bt) {
}
]);
});
bt.match(['controls*__plus', 'controls*__minus'], function (ctx) {
ctx.setAttr('title', ctx.getParam('alt'));
});
};