##// END OF EJS Templates
set default category_id instead of the object (#11665)...
set default category_id instead of the object (#11665) Rails 2.3 still has issues with synchronizing the association_id and association attributes of an object. That means, if you set the association with an object first and then just set the id afterwards, the object wins and the setting of the id gets lost. This is not an issue in Rails >= 3.1 anymore. Contributed by Holger Just. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.4-stable@10226 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r7259:38a2ce645bee
r10043:14dcefaa97f9
Show More
_tabs.html.erb
28 lines | 1.1 KiB | text/plain | TextLexer
Jean-Philippe Lang
Refactoring of tabs rendering....
r2757 <% selected_tab = params[:tab] ? params[:tab].to_s : tabs.first[:name] %>
<div class="tabs">
<ul>
<% tabs.each do |tab| -%>
<li><%= link_to l(tab[:label]), { :tab => tab[:name] },
:id => "tab-#{tab[:name]}",
:class => (tab[:name] != selected_tab ? nil : 'selected'),
:onclick => "showTab('#{tab[:name]}'); this.blur(); return false;" %></li>
<% end -%>
</ul>
Jean-Philippe Lang
Adds buttons to scroll the tabs when they overflow....
r3060 <div class="tabs-buttons" style="display:none;">
Toshi MARUYAMA
replace tabs to spaces at app/views/common/_tabs.html.erb...
r7259 <button class="tab-left" onclick="moveTabLeft(this);"></button>
<button class="tab-right" onclick="moveTabRight(this);"></button>
Jean-Philippe Lang
Adds buttons to scroll the tabs when they overflow....
r3060 </div>
Jean-Philippe Lang
Refactoring of tabs rendering....
r2757 </div>
Jean-Philippe Lang
Adds buttons to scroll the tabs when they overflow....
r3060 <script>
Toshi MARUYAMA
replace tabs to spaces at app/views/common/_tabs.html.erb...
r7259 Event.observe(window, 'load', function() { displayTabsButtons(); });
Event.observe(window, 'resize', function() { displayTabsButtons(); });
Jean-Philippe Lang
Adds buttons to scroll the tabs when they overflow....
r3060 </script>
Jean-Philippe Lang
Refactoring of tabs rendering....
r2757 <% tabs.each do |tab| -%>
Toshi MARUYAMA
remove trailing white-spaces from app/views/common/_tabs.html.erb...
r7148 <%= content_tag('div', render(:partial => tab[:partial], :locals => {:tab => tab} ),
Jean-Philippe Lang
Refactoring of tabs rendering....
r2757 :id => "tab-content-#{tab[:name]}",
:style => (tab[:name] != selected_tab ? 'display:none' : nil),
:class => 'tab-content') %>
<% end -%>