Merge pull request #23 from mokhov/titles

Added titles to menu
This commit is contained in:
Oleg Mokhov
2015-07-20 00:40:16 +05:00

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'));
});
};