[Common] added action for 'Back' menu

This commit is contained in:
Maxim Kadushkin 2017-03-16 16:59:04 +03:00
parent 57c35f7ca1
commit 849ff6a91e

View file

@ -204,8 +204,8 @@ define([
me.btnGoBack.on('click', function (e) {
me.fireEvent('go:back', ['page:current']);
});
me.btnGoBack.menu.on('item:click', function (e) {
me.fireEvent('go:back', ['page:new']);
me.btnGoBack.menu.on('item:click', function (menu, item, e) {
me.fireEvent('go:back', ['page:' + item.value]);
})
me.logo.on('click', function (e) {
@ -287,7 +287,7 @@ define([
style: 'min-width: 60px;',
items: [
{caption: me.itemBackCurrTab},
{caption: me.itemBackNewTab}
{caption: me.itemBackNewTab, value: 'new'}
]
})
});