1
0
mirror of https://github.com/dani/vroom.git synced 2024-06-28 09:49:18 +02:00

Rename the lang switch

This commit is contained in:
Daniel Berteaud 2014-10-23 18:01:01 +02:00
parent cb3c7cb5f9
commit 59aadfbbfb
3 changed files with 4 additions and 4 deletions

View File

@ -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()
}
})
},

View File

@ -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 %>

View File

@ -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 %>