From 8760de2115c322cf49906a2e24e8228f5d0763c5 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Wed, 14 Apr 2010 14:29:15 +0300 Subject: More fixes --- public/js/atwork.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'public/js') diff --git a/public/js/atwork.js b/public/js/atwork.js index 145636a..dffcc3b 100644 --- a/public/js/atwork.js +++ b/public/js/atwork.js @@ -10,11 +10,11 @@ function lpad(str, pad, len) return str; } -function load_day(day) +function load_day(day, str) { $('#dialog').load('day.php', {d: day}, function() { - $('#dialog').dialog('option', 'title', day); + $('#dialog').dialog('option', 'title', str); $('#dialog').dialog('open'); }); } @@ -25,7 +25,7 @@ function load_month(month) $('#month').load('month.php', {m: month}, function() { $('.day').click(function() { - load_day($(this).attr('title')); + load_day($(this).attr('id'), $(this).attr('title')); }); }); } @@ -35,7 +35,7 @@ $(function() load_month(0); $('#dialog').dialog({ - autoOpen: false, + autoOpen:false, height:380, width:395, modal:false, @@ -47,7 +47,7 @@ $(function() }, 'Oletus': function() { // Sets default hours - $('#type').val('1'); + $('#type').val('0'); $('#lunch').attr('checked', 'checked'); $('.start_h:first').val('10'); $('.start_m:first').val('00'); -- cgit v1.2.3