Skip to content

Commit

Permalink
Hide the picker for now, pick up the language from the URL params
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-c committed Mar 20, 2013
1 parent 11fbb54 commit 8310cbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/language_picker.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ class LanguagePicker
className: 'language-picker'

constructor: ->
preferredLanguage = localStorage.preferredLanguage || DEFAULT
preferredLanguage = try location.search.match(/lang=([\$|\w]+)/)[1]
preferredLanguage ||= localStorage.preferredLanguage
preferredLanguage ||= DEFAULT
HTML.attr 'data-language', preferredLanguage

@el = $("<select class='#{@className}'></select>")
Expand Down
1 change: 1 addition & 0 deletions css/language_picker.styl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.language-picker
bottom: 0
display: none // TODO
position: fixed
right: 0
z-index: 3

0 comments on commit 8310cbd

Please sign in to comment.