aboutsummaryrefslogtreecommitdiffstats
path: root/static
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2015-03-21 18:33:17 -0400
committerGuillaume Horel <guillaume.horel@gmail.com>2015-03-21 18:33:21 -0400
commit2d9b1654749a61c05796c73e049e8e1c6bb1722c (patch)
tree1df7f6c03c0b5492b1812ac800bc3ff749425927 /static
parent9d00ec877be9f5635b0f8a6f46016519d67a2251 (diff)
downloadwedding-website-2d9b1654749a61c05796c73e049e8e1c6bb1722c.tar.gz
handle wrong login/password and improve translations
Diffstat (limited to 'static')
-rw-r--r--static/wedding.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/static/wedding.js b/static/wedding.js
index 1a61f17..9e2f220 100644
--- a/static/wedding.js
+++ b/static/wedding.js
@@ -1,20 +1,26 @@
$("input:radio[name=language]").change(function(){
if($(this).val()=="fr"){
$("#lab-lang").text("Langue:");
- $("label[for=name]").text("Prenom:");
+ $("label[for=name]").text("Prénom:");
+ $("#name").attr("placeholder", "Prénom");
$("label[for=password]").text("Mot de Passe:");
+ $("#password").attr("placeholder", "Mot de Passe");
$("button[name=login]").text("Entrer");
}
if($(this).val()=="en"){
$("#lab-lang").text("Language:");
$("label[for=name]").text("Name:");
+ $("#name").attr("placeholder", "Name");
$("label[for=password]").text("Password:");
+ $("#password").attr("placeholder", "Password");
$("button[name=login]").text("Login");
}
if($(this).val()=="sr"){
$("#lab-lang").text("Jezik:");
$("label[for=name]").text("Ime:");
- $("label[for=password]").text("Sifra:");
+ $("#name").attr("placeholder", "Ime");
+ $("label[for=password]").text("Šifra:");
+ $("#password").attr("placeholder", "Šifra");
$("button[name=login]").text("Login");
}
});