From dc6c039c7c25c3c97e2b7837c09d0f4122a7cadd Mon Sep 17 00:00:00 2001 From: boyska Date: Mon, 4 May 2015 13:22:31 +0200 Subject: [PATCH] FIX bug in "old" form validation --- server/pages/archive.html | 3 ++- server/static/js/old.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/pages/archive.html b/server/pages/archive.html index 57598c6..d8348aa 100644 --- a/server/pages/archive.html +++ b/server/pages/archive.html @@ -53,10 +53,11 @@ $(function() { parseInt(rec.starttime, 10)).toLocaleString() ); var duration = $('').text(delta(rec.endtime, rec.starttime)); + var dl_text = $('').text(" Scarica").addClass('pure-hidden-phone'); var fn = $("").append($("").prop("href", "/output/" + rec.filename).addClass("pure-button pure-button-small") .html( $("").addClass("fa fa-download").css("color", "green")) - .append(" Scarica") ); + .append(dl_text)); var row = $('').append(name).append(start).append(duration).append(fn); $('#ongoing-recs-table tbody').append(row); } diff --git a/server/static/js/old.js b/server/static/js/old.js index cee817b..1ed4ff8 100644 --- a/server/static/js/old.js +++ b/server/static/js/old.js @@ -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) {