FIX bug in "old" form validation

This commit is contained in:
boyska 2015-05-04 13:22:31 +02:00
parent 2fef5ee57e
commit dc6c039c7c
2 changed files with 3 additions and 2 deletions

View file

@ -53,10 +53,11 @@ $(function() {
parseInt(rec.starttime, 10)).toLocaleString()
);
var duration = $('<td/>').text(delta(rec.endtime, rec.starttime));
var dl_text = $('<span/>').text(" Scarica").addClass('pure-hidden-phone');
var fn = $("<td/>").append($("<a/>").prop("href", "/output/" +
rec.filename).addClass("pure-button pure-button-small")
.html( $("<i/>").addClass("fa fa-download").css("color", "green"))
.append(" Scarica") );
.append(dl_text));
var row = $('<tr/>').append(name).append(start).append(duration).append(fn);
$('#ongoing-recs-table tbody').append(row);
}

View file

@ -23,7 +23,7 @@ var form = {
errs.unshift({ msg: msg, el: element});
}
var v = form.get_values();
if(v.val === '') {
if(v.name === '') {
err("Nome mancante", $('#name'));
}
if(v.start === null) {