Fix #140 : bad calendar in english

This commit is contained in:
Romain Neutron
2012-01-03 11:27:03 +01:00
parent ec7ecd3533
commit 008b1d66f6
2 changed files with 22 additions and 19 deletions

View File

@@ -1,15 +1,21 @@
var p4 = p4 || {};
$(document).ready(function(){
$('input.input-button').hover(
function(){$(this).addClass('hover');},
function(){$(this).removeClass('hover');}
);
var locale = $.cookie('locale');
p4.lng = locale !== null ? locale.split('_').reverse().pop() : 'en';
var jq_date = p4.lng = locale !== null ? locale.split('_').reverse().pop() : 'en';
if(jq_date == 'en')
{
jq_date = 'en-GB';
}
$.datepicker.setDefaults({showMonthAfterYear: false});
$.datepicker.setDefaults($.datepicker.regional[p4.lng]);
$.datepicker.setDefaults($.datepicker.regional[jq_date]);
$('a.infoDialog,div.infoDialog').live('click',function(event){
infoDialog($(this));