annotate .svn/pristine/fc/fce0d89d5b88d079f5970994503e60b140fbf5f1.svn-base @ 1524:82fac3dcf466 redmine-2.5-integration

Fix failure to interpret Javascript when autocompleting members for project
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 11 Sep 2014 10:24:38 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 <% selected_tab = params[:tab] ? params[:tab].to_s : tabs.first[:name] %>
Chris@909 2
Chris@909 3 <div class="tabs">
Chris@909 4 <ul>
Chris@909 5 <% tabs.each do |tab| -%>
Chris@909 6 <li><%= link_to l(tab[:label]), { :tab => tab[:name] },
Chris@909 7 :id => "tab-#{tab[:name]}",
Chris@909 8 :class => (tab[:name] != selected_tab ? nil : 'selected'),
Chris@909 9 :onclick => "showTab('#{tab[:name]}'); this.blur(); return false;" %></li>
Chris@909 10 <% end -%>
Chris@909 11 </ul>
Chris@909 12 <div class="tabs-buttons" style="display:none;">
Chris@909 13 <button class="tab-left" onclick="moveTabLeft(this);"></button>
Chris@909 14 <button class="tab-right" onclick="moveTabRight(this);"></button>
Chris@909 15 </div>
Chris@909 16 </div>
Chris@909 17
Chris@909 18 <script>
Chris@909 19 Event.observe(window, 'load', function() { displayTabsButtons(); });
Chris@909 20 Event.observe(window, 'resize', function() { displayTabsButtons(); });
Chris@909 21 </script>
Chris@909 22
Chris@909 23 <% tabs.each do |tab| -%>
Chris@909 24 <%= content_tag('div', render(:partial => tab[:partial], :locals => {:tab => tab} ),
Chris@909 25 :id => "tab-content-#{tab[:name]}",
Chris@909 26 :style => (tab[:name] != selected_tab ? 'display:none' : nil),
Chris@909 27 :class => 'tab-content') %>
Chris@909 28 <% end -%>