Rename the lang switch

master
Daniel Berteaud 10 years ago
parent cb3c7cb5f9
commit 59aadfbbfb
  1. 4
      public/js/vroom.js
  2. 2
      templates/default/join.html.ep
  3. 2
      templates/default/public_toolbar.html.ep

@ -41,14 +41,14 @@ $.ajaxSetup({
}); });
// Handle lang switch // Handle lang switch
$('#langSwitch').change(function(){ $('#switch_lang').change(function(){
$.ajax({ $.ajax({
url: rootUrl + 'api', url: rootUrl + 'api',
data: { data: {
req: JSON.stringify({ req: JSON.stringify({
action: 'switch_lang', action: 'switch_lang',
param : { param : {
language: $('#langSwitch').val() language: $('#switch_lang').val()
} }
}) })
}, },

@ -254,7 +254,7 @@
</button> </button>
</div> </div>
<div class="btn-group"> <div class="btn-group">
<select class="form-control " id="langSwitch"> <select class="form-control" id="switch_lang">
<% foreach my $lang (qw(en fr)){ %> <% foreach my $lang (qw(en fr)){ %>
<option value="<%= $lang %>" <%= ($self->languages eq $lang) ? 'selected="selected"' : '' %>> <option value="<%= $lang %>" <%= ($self->languages eq $lang) ? 'selected="selected"' : '' %>>
<%= $lang %> <%= $lang %>

@ -27,7 +27,7 @@
<a href="<%= $self->get_url('/feedback') %>"><%=l 'FEEDBACK' %></a> <a href="<%= $self->get_url('/feedback') %>"><%=l 'FEEDBACK' %></a>
</li> </li>
<li> <li>
<select class="form-control navbar-btn" id="langSwitch"> <select class="form-control navbar-btn" id="switch_lang">
<% foreach my $lang (qw(en fr)){ %> <% foreach my $lang (qw(en fr)){ %>
<option value="<%= $lang %>" <%= ($self->languages eq $lang) ? 'selected="selected"' : '' %>> <option value="<%= $lang %>" <%= ($self->languages eq $lang) ? 'selected="selected"' : '' %>>
<%= $lang %> <%= $lang %>

Loading…
Cancel
Save