summaryrefslogtreecommitdiffstats
path: root/app/views/common
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2019-06-20 07:12:30 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2019-06-20 07:12:30 +0000
commit94c2356f383000cea42072a94b351f79ff4567d4 (patch)
treea1162b7ee00ddd498d1cb52d3d6299fd9bde9b08 /app/views/common
parent0714ced81572a1501d37bc866855a7f339c3bf03 (diff)
downloadredmine-94c2356f383000cea42072a94b351f79ff4567d4.tar.gz
redmine-94c2356f383000cea42072a94b351f79ff4567d4.zip
Load changesets and time entries tabs async (#3058).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18275 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/common')
-rw-r--r--app/views/common/_tabs.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/common/_tabs.html.erb b/app/views/common/_tabs.html.erb
index df7513e42..def21ff45 100644
--- a/app/views/common/_tabs.html.erb
+++ b/app/views/common/_tabs.html.erb
@@ -18,10 +18,10 @@
</div>
<% tabs.each do |tab| -%>
- <%= content_tag('div', render(:partial => tab[:partial], :locals => {:tab => tab} ),
+ <%= content_tag('div', (render(:partial => tab[:partial], :locals => {:tab => tab}) if tab[:partial]) ,
:id => "tab-content-#{tab[:name]}",
:style => (tab[:name] != selected_tab ? 'display:none' : nil),
- :class => 'tab-content') if tab[:partial] %>
+ :class => 'tab-content') if tab[:partial] || tab[:remote] %>
<% end -%>
<%= javascript_tag default_action if default_action %>