summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAlib <aliboba@free.fr>2010-03-24 12:03:12 +0100
committerAlib <aliboba@free.fr>2010-03-24 12:03:12 +0100
commitf6c5b0f753bff20165dd022e9d8538ad2067459f (patch)
tree4489f14b1148c52f3b6b71719628f504638dc8a9 /js
parent60e65488ce1e7fab7dc094ae90eadaefe073fd01 (diff)
downloadistreamdev-f6c5b0f753bff20165dd022e9d8538ad2067459f.tar.gz
istreamdev-f6c5b0f753bff20165dd022e9d8538ad2067459f.tar.bz2
corrected scrollTo in timers
Diffstat (limited to 'js')
-rw-r--r--js/istreamdev.js7
1 files changed, 4 insertions, 3 deletions
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();