From b41ce8dd591233634c691b7286d825fb878bcf9a Mon Sep 17 00:00:00 2001 From: Karel Picman Date: Tue, 24 Nov 2015 10:25:16 +0100 Subject: [PATCH] sort function #470 --- app/views/dmsf/show.html.erb | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/views/dmsf/show.html.erb b/app/views/dmsf/show.html.erb index 6cc9f322..20e26ae8 100644 --- a/app/views/dmsf/show.html.erb +++ b/app/views/dmsf/show.html.erb @@ -234,12 +234,9 @@ }); -<% - if I18n.locale && !I18n.locale.to_s.match(/^en.*/) - sUrl = "jquery.dataTables/#{I18n.locale.to_s.downcase}.json" - else - sUrl = 'jquery.dataTables/en.json' - end +<% + sUrl = "jquery.dataTables/#{I18n.locale.to_s.downcase}.json" + sUrl = 'jquery.dataTables/en.json' unless File.exist?(sUrl) %> <% content_for :header_tags do %>