Project

General

Profile

Feature #21662 » diff.patch

Mizuki ISHIKAWA, 2018-03-28 08:45

View differences:

app/views/layouts/base.html.erb
13 13
<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
14 14
<%= javascript_heads %>
15 15
<%= heads_for_theme %>
16
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/css/select2.min.css" rel="stylesheet" />
17
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/js/select2.min.js"></script>
16 18
<%= call_hook :view_layouts_base_html_head %>
17 19
<!-- page specific tags -->
18 20
<%= yield :header_tags -%>
public/javascripts/application.js
850 850
  return true;
851 851
}
852 852

  
853
$(document).ready(function(){
854
  $('select:not([multiple])').select2({
855
    width: '100%'
856
  });
857
});
858

  
853 859
$(document).ready(setupAjaxIndicator);
854 860
$(document).ready(hideOnLoad);
855 861
$(document).ready(addFormObserversForDoubleSubmit);
(12-12/13)