From f6c5b0f753bff20165dd022e9d8538ad2067459f Mon Sep 17 00:00:00 2001 From: Alib Date: Wed, 24 Mar 2010 12:03:12 +0100 Subject: corrected scrollTo in timers --- js/istreamdev.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'js') diff --git a/js/istreamdev.js b/js/istreamdev.js index 743eee0..7f22e4a 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -910,11 +910,12 @@ $('.submit_form').tap(function(event) { }); function checktimerform() { + $('.formerror').hide(); var timer_name = $("input#timer_name").val(); - if (timer_name == "") { - $("li#timer_name_error").show(); - $.scrollTo('#edittimer #ul[rel="name"]'); + if (timer_name == "") { + $.scrollTo('#edittimer .toolbar', 400, {easing:'swing'}); + $("li#timer_name_error").show(); return false; } var timer_date = $("input#timer_date").val(); -- cgit v1.2.3