Skip to content

Commit 3e2c61d

Browse files
authored
Merge branch 'master' into fix-load-paths
2 parents 9ed211c + 1ef260b commit 3e2c61d

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

app/assets/javascripts/crm_select2.js.coffee

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,26 @@
1515
$(this).select2
1616
'width':'resolve'
1717
placeholder: $(this).attr("placeholder")
18+
allowClear: true
1819
ajax:
1920
url: $(this).data("url")
2021
dataType: 'json'
2122
else
2223
$(this).select2
2324
'width':'resolve'
2425
placeholder: $(this).attr("placeholder")
26+
allowClear: true
2527

2628
if $(this).prop("disabled") == true
2729
$(this).next('.select2-container').disable()
28-
$(this).next('.select2-container').hide()
30+
$(this).next('.select2-container').hide()
2931

3032
$(".select2_tag").not(".select2-container, .select2-offscreen").each ->
3133
$(this).select2
3234
'width':'resolve'
3335
placeholder: $(this).data("placeholder")
3436
multiple: $(this).data("multiple")
37+
allowClear: true
3538

3639
$(document).ready ->
3740
crm.make_select2()

app/views/shared/_address.html.haml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@
4141
= address_field(a, :zipcode, "width:80px;")
4242
%td= spacer
4343
%td
44-
= a.country_select(:country, priority_countries: priority_countries, include_blank: "", :"data-placeholder" => t(:select_a_country), style: "width:150px; margin-top:6px", class: 'select2')
44+
= a.country_select(:country, {priority_countries: priority_countries, include_blank: true}, {data: { placeholder: t(:select_a_country)}, class: 'select2'})

config/initializers/custom_field_ransack_translations.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#------------------------------------------------------------------------------
88
# Load field names for custom fields, for Ransack search
99
require 'setting'
10-
if Setting.database_and_table_exists?
10+
if Setting.database_and_table_exists? && ActiveRecord::Base.connection.table_exists?(:custom_fields)
1111
Rails.application.config.after_initialize do
1212
I18n.backend.load_translations
1313

config/settings.default.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@
192192
#------------------------------------------------------------------------------
193193
# Specify which countries (if any) should appear at the top of country pickers
194194
# priority_countries:
195-
# - Burkina Faso
195+
# - AU
196+
# - BF
196197

197198
# Main and Admin Tabs
198199
#------------------------------------------------------------------------------

0 commit comments

Comments
 (0)