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
$('#langSwitch').change(function(){
$('#switch_lang').change(function(){
$.ajax({
url: rootUrl + 'api',
data: {
req: JSON.stringify({
action: 'switch_lang',
param : {
language: $('#langSwitch').val()
language: $('#switch_lang').val()
}
})
},

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

@ -27,7 +27,7 @@
<a href="<%= $self->get_url('/feedback') %>"><%=l 'FEEDBACK' %></a>
</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)){ %>
<option value="<%= $lang %>" <%= ($self->languages eq $lang) ? 'selected="selected"' : '' %>>
<%= $lang %>

Loading…
Cancel
Save