mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 20:13:28 +00:00
Fix #140 : bad calendar in english
This commit is contained in:
@@ -1,15 +1,21 @@
|
|||||||
|
var p4 = p4 || {};
|
||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
|
||||||
$('input.input-button').hover(
|
$('input.input-button').hover(
|
||||||
function(){$(this).addClass('hover');},
|
function(){$(this).addClass('hover');},
|
||||||
function(){$(this).removeClass('hover');}
|
function(){$(this).removeClass('hover');}
|
||||||
);
|
);
|
||||||
var locale = $.cookie('locale');
|
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({showMonthAfterYear: false});
|
||||||
$.datepicker.setDefaults($.datepicker.regional[p4.lng]);
|
$.datepicker.setDefaults($.datepicker.regional[jq_date]);
|
||||||
|
|
||||||
$('a.infoDialog,div.infoDialog').live('click',function(event){
|
$('a.infoDialog,div.infoDialog').live('click',function(event){
|
||||||
infoDialog($(this));
|
infoDialog($(this));
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
document.getElementById('loader_bar').style.width = '30%';
|
document.getElementById('loader_bar').style.width = '30%';
|
||||||
|
|
||||||
var p4 = {};
|
var p4 = p4 || {};
|
||||||
|
|
||||||
var baskAjax,baskAjaxrunning;
|
var baskAjax,baskAjaxrunning;
|
||||||
baskAjaxrunning = false;
|
baskAjaxrunning = false;
|
||||||
@@ -1398,24 +1398,21 @@ $(document).ready(function(){
|
|||||||
$('#loader_bar').stop().animate({
|
$('#loader_bar').stop().animate({
|
||||||
width:'70%'
|
width:'70%'
|
||||||
},450);
|
},450);
|
||||||
p4 = {
|
p4.preview = {
|
||||||
preview :{
|
|
||||||
open:false,
|
open:false,
|
||||||
current:false
|
current:false
|
||||||
},
|
};
|
||||||
currentViewMode:'classic',
|
p4.currentViewMode = 'classic';
|
||||||
nbNoview:0,
|
p4.nbNoview = 0;
|
||||||
reg_delete:true,
|
p4.reg_delete = true;
|
||||||
lng:'',
|
p4.sel = [];
|
||||||
sel:[],
|
p4.baskSel = [];
|
||||||
baskSel:[],
|
p4.edit = {};
|
||||||
edit:{},
|
p4.thesau = {
|
||||||
thesau:{
|
|
||||||
tabs:null
|
tabs:null
|
||||||
},
|
};
|
||||||
active_zone:false,
|
p4.active_zone = false;
|
||||||
next_bask_scroll: false
|
p4.next_bask_scroll = false;
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
$('#backcolorpickerHolder').ColorPicker({
|
$('#backcolorpickerHolder').ColorPicker({
|
||||||
|
Reference in New Issue
Block a user