summaryrefslogtreecommitdiffstats
path: root/public/js/atwork.js
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2010-04-14 14:29:15 +0300
committerFilipp Lepalaan <filipp@mac.com>2010-04-14 14:29:15 +0300
commit8760de2115c322cf49906a2e24e8228f5d0763c5 (patch)
treec010b6a4360d85f07ba839623a3551e9dd4f8ca1 /public/js/atwork.js
parent63822bacd44d964df3596f928f44a56ab5625d4f (diff)
downloadatwork-master.tar.gz
atwork-master.tar.bz2
atwork-master.zip
More fixesHEADmaster
Diffstat (limited to 'public/js/atwork.js')
-rw-r--r--public/js/atwork.js10
1 files changed, 5 insertions, 5 deletions
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');