Feature #21662 » diff.patch
| app/views/layouts/base.html.erb | ||
|---|---|---|
|
<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
|
||
|
<%= javascript_heads %>
|
||
|
<%= heads_for_theme %>
|
||
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/css/select2.min.css" rel="stylesheet" />
|
||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/js/select2.min.js"></script>
|
||
|
<%= call_hook :view_layouts_base_html_head %>
|
||
|
<!-- page specific tags -->
|
||
|
<%= yield :header_tags -%>
|
||
| public/javascripts/application.js | ||
|---|---|---|
|
return true;
|
||
|
}
|
||
|
$(document).ready(function(){
|
||
|
$('select:not([multiple])').select2({
|
||
|
width: '100%'
|
||
|
});
|
||
|
});
|
||
|
$(document).ready(setupAjaxIndicator);
|
||
|
$(document).ready(hideOnLoad);
|
||
|
$(document).ready(addFormObserversForDoubleSubmit);
|
||