annotate .svn/pristine/e8/e84c351718bd1a5eadda29f604726b2c77c400e6.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 dffacf8a6908
children
rev   line source
Chris@1517 1 <div class="tabs">
Chris@1517 2 <ul>
Chris@1517 3 <% tabs.each do |tab| -%>
Chris@1517 4 <li><%= link_to l(tab[:label]), { :tab => tab[:name] },
Chris@1517 5 :id => "tab-#{tab[:name]}",
Chris@1517 6 :class => (tab[:name] != selected_tab ? nil : 'selected'),
Chris@1517 7 :onclick => "showTab('#{tab[:name]}', this.href); this.blur(); return false;" %></li>
Chris@1517 8 <% end -%>
Chris@1517 9 </ul>
Chris@1517 10 <div class="tabs-buttons" style="display:none;">
Chris@1517 11 <button class="tab-left" onclick="moveTabLeft(this); return false;"></button>
Chris@1517 12 <button class="tab-right" onclick="moveTabRight(this); return false;"></button>
Chris@1517 13 </div>
Chris@1517 14 </div>
Chris@1517 15
Chris@1517 16 <script>
Chris@1517 17 $(document).ready(displayTabsButtons);
Chris@1517 18 $(window).resize(displayTabsButtons);
Chris@1517 19 </script>
Chris@1517 20
Chris@1517 21 <% tabs.each do |tab| -%>
Chris@1517 22 <%= content_tag('div', render(:partial => tab[:partial], :locals => {:tab => tab} ),
Chris@1517 23 :id => "tab-content-#{tab[:name]}",
Chris@1517 24 :style => (tab[:name] != selected_tab ? 'display:none' : nil),
Chris@1517 25 :class => 'tab-content') %>
Chris@1517 26 <% end -%>