tazbug view web/lib/functions.js @ rev 31

check i18n: make {pot,msgfmt,clean}; fix Makefile; change i18n; add ru.po
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Jul 01 22:26:53 2012 +0000 (2012-07-01)
parents
children a8652095c93f
line source
1 // SliTaz Bugs Javascript functions.
2 //
4 // Check form to avoid empty values and bad email.
5 function checkNewBug() {
6 if(document.forms["addbug"]["title"].value == "")
7 {
8 alert("Please enter a title for the new bug");
9 document.forms["addbug"]["title"].focus();
10 return false;
11 }
12 if(document.forms["addbug"]["desc"].value == "")
13 {
14 alert("Please fill in the bug description");
15 document.forms["addbug"]["desc"].focus();
16 return false;
17 }
18 }