diff --git a/apps/documenteditor/main/app/template/Toolbar.template b/apps/documenteditor/main/app/template/Toolbar.template
index fcd6b5f3b..289c70e10 100644
--- a/apps/documenteditor/main/app/template/Toolbar.template
+++ b/apps/documenteditor/main/app/template/Toolbar.template
@@ -7,7 +7,7 @@
<% for(var i in tabs) { %>
- -
+
-
<%= tabs[i].caption %>
<% } %>
diff --git a/apps/documenteditor/main/app/view/Toolbar.js b/apps/documenteditor/main/app/view/Toolbar.js
index 756567ba3..1fb02a85f 100644
--- a/apps/documenteditor/main/app/view/Toolbar.js
+++ b/apps/documenteditor/main/app/view/Toolbar.js
@@ -1336,7 +1336,7 @@ define([
$boxTabs = me.$el.find('.tabs > ul');
$tabs = $boxTabs.find('> li');
$panels = me.$el.find('.box-panels > .panel');
- $tabs.on('click', function (e) {
+ $tabs.parent().on('click', '.rib-tab', function (e) {
var tab = $(e.target).data('tab');
if (tab == 'file') {
me.fireEvent('file:open');
@@ -2365,7 +2365,7 @@ define([
return config.tabs[index].action;
}
- var _tplTab = '- <%= caption %>
';
+ var _tplTab = '- <%= caption %>
';
config.tabs[after + 1] = tab;
var _after_action = _get_tab_action( after );