[DE] process moving for the 'post-rendered' tabs

This commit is contained in:
Maxim Kadushkin 2017-03-29 12:45:55 +03:00
parent ac79eacb35
commit 86c82b1228
2 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,7 @@
</a> </a>
<ul> <ul>
<% for(var i in tabs) { %> <% for(var i in tabs) { %>
<li> <li class="rb-tab">
<a data-tab="<%= tabs[i].action %>" data-title="<%= tabs[i].caption %>"><%= tabs[i].caption %></a> <a data-tab="<%= tabs[i].action %>" data-title="<%= tabs[i].caption %>"><%= tabs[i].caption %></a>
</li> </li>
<% } %> <% } %>

View file

@ -1336,7 +1336,7 @@ define([
$boxTabs = me.$el.find('.tabs > ul'); $boxTabs = me.$el.find('.tabs > ul');
$tabs = $boxTabs.find('> li'); $tabs = $boxTabs.find('> li');
$panels = me.$el.find('.box-panels > .panel'); $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'); var tab = $(e.target).data('tab');
if (tab == 'file') { if (tab == 'file') {
me.fireEvent('file:open'); me.fireEvent('file:open');
@ -2365,7 +2365,7 @@ define([
return config.tabs[index].action; return config.tabs[index].action;
} }
var _tplTab = '<li><a href="#" data-tab="<%= action %>" title="<%= caption %>"><%= caption %></a></li>'; var _tplTab = '<li class="rib-tab"><a href="#" data-tab="<%= action %>" data-title="<%= caption %>"><%= caption %></a></li>';
config.tabs[after + 1] = tab; config.tabs[after + 1] = tab;
var _after_action = _get_tab_action( after ); var _after_action = _get_tab_action( after );