diff options
author | Alib <aliboba@free.fr> | 2010-03-01 13:58:29 +0100 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-03-01 13:58:29 +0100 |
commit | a8012963c23e7e5eaf487ee9e192ae5c4d4ccff2 (patch) | |
tree | bcf37957b5a61d64723d01518f99f42a983fd7c9 | |
parent | 90bfc06761dfcaf119fdb4dcbe92d6364721dee8 (diff) | |
download | istreamdev-a8012963c23e7e5eaf487ee9e192ae5c4d4ccff2.tar.gz istreamdev-a8012963c23e7e5eaf487ee9e192ae5c4d4ccff2.tar.bz2 |
fix problm with some daysistreamdev-0.x
-rwxr-xr-x | javascript/functions.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/javascript/functions.js b/javascript/functions.js index 7b0e492..e520663 100755 --- a/javascript/functions.js +++ b/javascript/functions.js @@ -66,11 +66,10 @@ function openSelectDate(timer_year,timer_month,timer_day) { var layer = 'layer_date';
var days = { };
var years = { };
- var months = { '01': 'Jan', '02': 'Feb', '03': 'Mar', '04': 'Apr', '05': 'May','06': 'Jun', '07': 'Jul', '08': 'Aug', '09': 'Sep', '10': 'Oct', '11': 'Nov', '12': 'Dec' };
+ var months = { '01': '01', '02': '02', '03': '03', '04': '04', '05': '05','06': '06', '07': '07', '08': '08', '09': '09', '10': '10', '11': '11', '12': '12' };
for( var i = 1; i < 32; i += 1 ) {
- i = str_pad(i, 2, '0', 'STR_PAD_LEFT');
- days[i] = i;
+ days[i] = str_pad(i, 2, '0', 'STR_PAD_LEFT');
}
for( i = now.getFullYear(); i < now.getFullYear()+5; i += 1 ) {
@@ -88,6 +87,7 @@ function openSelectDate(timer_year,timer_month,timer_day) { function done_date() {
var results = SpinningWheel.getSelectedValues();
+
document.getElementById('layer_date').innerHTML = results.keys.join('-');
document.timer.timer_date.value = results.keys.join('-');
|