tazbug view web/lib/functions.js @ rev 47
Add Polish translations (thanks Pawel Pyrczak)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Jul 25 03:45:14 2013 +0300 (2013-07-25) |
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 }