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

Add the web interface
author Christophe Lincoln <pankso@slitaz.org>
date Tue Apr 03 12:12:59 2012 +0200 (2012-04-03)
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 }