From bfeb8a1d4762a86b2fb0544fe78d6bca4c65ef0c Mon Sep 17 00:00:00 2001 From: AurelioAHeckert Date: Sat, 7 Jun 2008 23:06:17 +0000 Subject: [PATCH] ActionItem373: Language selector and some IE workaround bug --- app/helpers/language_helper.rb | 2 +- app/views/layouts/application.rhtml | 7 ++++--- public/designs/themes/zen3/stylesheets/menu.css | 20 ++++++++++++++++---- public/stylesheets/controller_search.css | 15 +++++++-------- public/stylesheets/menu.css | 12 ++++++++++++ 5 files changed, 40 insertions(+), 16 deletions(-) diff --git a/app/helpers/language_helper.rb b/app/helpers/language_helper.rb index 3955e28..6f2abab 100644 --- a/app/helpers/language_helper.rb +++ b/app/helpers/language_helper.rb @@ -14,7 +14,7 @@ module LanguageHelper if options[:element] == 'dropdown' select_tag('lang', options_for_select(Noosfero.locales.map{|code,name| [name, code]}, current), - :onchange => "document.location='?' + name + '=' + value;", + :onchange => "document.location.href='?' + name + '=' + value;", :help => _('The language you choose here is the language used for options, buttons, etc. It does not affect the language of the content created by other users.') ) else diff --git a/app/views/layouts/application.rhtml b/app/views/layouts/application.rhtml index 4b6c52a..0ec0fad 100644 --- a/app/views/layouts/application.rhtml +++ b/app/views/layouts/application.rhtml @@ -1,3 +1,4 @@ + @@ -91,18 +92,18 @@ <%= _("This bar helps you find information following two paths or dimensions. First dimension is composed of categories, which you'll find in the colored tabs in the top. Second dimension has content types, and you'll find them in the animated bar on your right.") % @environment.name %> -