From 67e50b656839471c197a9757457b90aa5ddda0a9 Mon Sep 17 00:00:00 2001 From: Karel Picman Date: Mon, 20 Jan 2014 09:37:12 +0100 Subject: [PATCH] #206 'Select All' checkbox not functioning --- app/views/dmsf/show.html.erb | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/app/views/dmsf/show.html.erb b/app/views/dmsf/show.html.erb index e55d626a..608bb2fc 100644 --- a/app/views/dmsf/show.html.erb +++ b/app/views/dmsf/show.html.erb @@ -327,26 +327,24 @@ <% end %> <% -sUrl = 'jquery.dataTables/en.json' -sUrl = "jquery.dataTables/#{I18n.locale.to_s.downcase}.json" if I18n.locale && !I18n.locale.to_s.match(/^en.*/) + 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 %> <% content_for :header_tags do %>