Disabled date picker on microsoft edge

This commit is contained in:
Xavier J 2016-10-10 16:17:17 +02:00
parent dd75a58a6c
commit 627d80277b

View file

@ -9,7 +9,7 @@ class Champ < ActiveRecord::Base
end end
def data_provide def data_provide
return 'datepicker' if (type_champ == 'datetime' || type_champ == 'date') && !BROWSER.value.chrome? return 'datepicker' if (type_champ == 'datetime' || type_champ == 'date') && !(BROWSER.value.chrome? || BROWSER.value.edge?)
return 'typeahead' if type_champ == 'address' return 'typeahead' if type_champ == 'address'
end end