Resolve bug introduce by issue #0001219

This commit is contained in:
Michael RICOIS 2012-07-23 12:48:51 +00:00
parent 88478b95f9
commit 923671261b
5 changed files with 16 additions and 24 deletions

View File

@ -10,12 +10,8 @@
<li><?=$this->Field('eff_entrep')?></li>
<li class="advanced"><?=$this->Field('eff_etab')?></li>
<li class="advanced"><?=$this->Field('nbEtab')?></li>
<li class="mode"><img src="/themes/default/images/fleche-bas.gif" /></li>
</ul>
<p>
<a class="mode" id="a_economique" style="cursor:pointer;margin-left:50%">
<img src="/themes/default/images/fleche-bas.gif" />
</a>
</p>
</div>
<div style="text-align:right;margin-top:20px;">
<a class="resetFamille" id="economique">Réinitialiser les critères economiques</a>

View File

@ -19,12 +19,8 @@
<li class="advanced"><?=$this->Field('bilHM')?></li>
<li class="advanced"><?=$this->Field('bilHN')?></li>
<li class="advanced"><?=$this->Field('bilYP')?></li>
<li class="mode"><img src="/themes/default/images/fleche-bas.gif" /></li>
</ul>
<p>
<a class="mode" id="a_financiere" style="cursor:pointer;margin-left:50%">
<img src="/themes/default/images/fleche-bas.gif" />
</a>
</p>
</div>
<div style="text-align:right;margin-top:20px;">
<a class="resetFamille" id="financier">Réinitialiser les critères financiers</a>

View File

@ -5,12 +5,8 @@
<li><?=$this->Field('procolHisto')?></li>
<li><?=$this->Field('dateImmat')?></li>
<li class="advanced"><?=$this->Field('tvaIntraValide')?></li>
<li class="mode"><img src="/themes/default/images/fleche-bas.gif" /></li>
</ul>
<p>
<a class="mode" id="a_juridique" style="cursor:pointer;margin-left:50%">
<img src="/themes/default/images/fleche-bas.gif" />
</a>
</p>
</div>
<div style="text-align:right;margin-top:20px;">
<a class="resetFamille" id="econmique">Réinitialiser les critères juridique</a>

View File

@ -54,15 +54,14 @@ $(document).ready(function(){
});
$('.mode').click(function() {
var mode = 0;
$('ul#fieldsblock li').each(function() {
if ($(this).attr('class')=='advanced') {
if($(this).css('display')=='none') {
$(this).css('display', 'block');
mode++;
} else {
$(this).css('display', 'none');
}
var mode = 0;
var obj = $(this).parent('ul#fieldsblock');
$(obj).children('li.advanced').each(function() {
if($(this).css('display')=='none') {
$(this).css('display', 'block');
mode++;
} else {
$(this).css('display', 'none');
}
});
if (mode==0) {

View File

@ -258,6 +258,11 @@ ul#fieldsblock li.advanced {
display:none;
}
ul#fieldsblock li.mode {
text-align:center;
background-color:#FFFFFF;
}
ul#fieldsblock li div.fieldgrp {
clear: both;
width: 100%;