Mise a jours du JS pour IE6.
This commit is contained in:
parent
c49a520bf5
commit
2bf6e1bb6d
@ -1,5 +1,5 @@
|
||||
$(document).ready(function(){
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
$( "#tabs" ).tabs({
|
||||
cookie: { expires: 1 }
|
||||
});
|
||||
@ -116,29 +116,15 @@ $(document).ready(function(){
|
||||
set(key, values);
|
||||
return false;
|
||||
});
|
||||
|
||||
/* Cacher le lien validé dans le cas ou les données ne sont pas coohérantes */
|
||||
|
||||
$('.intervalSelect').change(function(){
|
||||
var key = $(this).attr('id');
|
||||
var number = $(this).attr('number');
|
||||
|
||||
if(number == 1) {
|
||||
if($(this).val() > $('select[name='+key+'2] option:selected').val()){
|
||||
$('span#'+key).html('');
|
||||
$('.error').css('display', 'block');
|
||||
$('.error div').html('<b>'+key+'</b> : '+$(this).val()+' supérieur '+$('select[name='+key+'2] option:selected').val()+', Donnée incohérantes.');
|
||||
}else {
|
||||
$('.error').css('display', 'none');
|
||||
$('span#'+key).html(' <span id="'+key+'"><a href="" class="intervalSelect" id="'+key+'">Valider</a></span>');
|
||||
}
|
||||
$('span#'+key).html(' <span id="'+key+'"><a href="" class="intervalSelect" id="'+key+'">Valider</a></span>');
|
||||
}else {
|
||||
if($(this).val() < $('select[name='+key+'1] option:selected').val()){
|
||||
$('span#'+key).html('');
|
||||
$('.error').css('display', 'block');
|
||||
$('.error div').html('<b>'+key+'</b> : '+$(this).val()+' inférieur '+$('select[name='+key+'1] option:selected').val()+', Donnée incohérantes.');
|
||||
}else {
|
||||
$('span#'+key).html(' <span id="'+key+'"><a href="" class="intervalSelect" id="'+key+'">Valider</a></span>');
|
||||
}
|
||||
$('span#'+key).html(' <span id="'+key+'"><a href="" class="intervalSelect" id="'+key+'">Valider</a></span>');
|
||||
}
|
||||
});
|
||||
|
||||
@ -182,7 +168,6 @@ $(document).ready(function(){
|
||||
return false;
|
||||
});
|
||||
|
||||
$('.error').get('/Erreur/get');
|
||||
$('.resetFamille').click(function(){
|
||||
var famille = $(this).attr('id');
|
||||
$.ajax({
|
||||
@ -197,14 +182,6 @@ $(document).ready(function(){
|
||||
});
|
||||
});
|
||||
|
||||
function colorLine(valeur, name)
|
||||
{
|
||||
if (valeur != 'tous'){
|
||||
$("#"+name).css('background-image', 'url("/themes/default/images/stripe_green.png")');
|
||||
} else {
|
||||
$("#"+name).css('background-image', 'url("/themes/default/images/stripe.png")')
|
||||
}
|
||||
}
|
||||
|
||||
function set(key, value)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user