* duedate calendar now uses full names of months

This commit is contained in:
Max Pozdeev 2009-09-20 20:15:18 +04:00
parent 367512fc0b
commit 931ff6d64a
2 changed files with 3 additions and 3 deletions

View file

@ -75,7 +75,7 @@ $().ready(function(){
$("#duedate").datepicker({dateFormat: '<?php echo $duedateformat; ?>', firstDay: <?php echo $config['firstdayofweek']; ?>,
showOn: 'button', buttonImage: 'images/calendar.png', buttonImageOnly: true, changeMonth:true,
changeYear:true, constrainInput: false, duration:'', nextText:'&gt;', prevText:'&lt;', dayNamesMin:lang.daysMin,
monthNamesShort:lang.monthsShort });
monthNamesShort:lang.monthsLong });
<?php if(!isset($_GET['pda'])): ?>
$("#page_taskedit").draggable({ stop: function(e,ui){ flag.windowTaskEditMoved=true; tmp.editformpos=[$(this).css('left'),$(this).css('top')]; } });
$("#page_taskedit").resizable({ minWidth:$("#page_taskedit").width(), minHeight:$("#page_taskedit").height(), start:function(ui,e){editFormResize(1)}, resize:function(ui,e){editFormResize(0,e)}, stop:function(ui,e){editFormResize(2,e)} });

View file

@ -93,8 +93,8 @@ class DefaultLang
foreach($this->get('days_min') as $v) { $t[] = '"'.str_replace('"','\\"',$v).'"'; }
$a[] = "daysMin: [". implode(',', $t). "]";
$t = array();
foreach($this->get('months_short') as $v) { $t[] = '"'.str_replace('"','\\"',$v).'"'; }
$a[] = "monthsShort: [". implode(',', $t). "]";
foreach($this->get('months_long') as $v) { $t[] = '"'.str_replace('"','\\"',$v).'"'; }
$a[] = "monthsLong: [". implode(',', $t). "]";
return "lang = {\n". implode(",\n", $a). "\n};";
}