Skip to content

Instantly share code, notes, and snippets.

@irwinv
Created July 12, 2012 14:05
Show Gist options
  • Save irwinv/3098324 to your computer and use it in GitHub Desktop.
Save irwinv/3098324 to your computer and use it in GitHub Desktop.
qtip plugin bug (resolu)
... dans mon Head
$(document).ready(function(){
var sujet = $('div.infos input.sujet').val();
var desc = $('div.infos input.desc').val();
var idevent = $('div.infos input.idevent').val();
var hrdebutevt = $('div.infos input.heuredebutevent').val();
var hrfinevt = $('div.infos input.heurefinevent').val();
var html = '<strong><a href="eventback.php?eventbackid='+idevent+'">'+sujet+'</strong></a>';
html += '<br />De : '+hrdebutevt+' &agrave; '+hrfinevt+'<br /><p>'+desc+'</p><br />';
html += 'En savoir + <a href="eventback.php?eventbackid='+idevent+'">Cliquez ici</a>';
$('div.tblsubject a').qtip({
content:{
text: html
},
position: {
corner: {
target: 'topRight',
tooltip: 'bottomRight'
},
adjust: {
screen: true
}
},
show:{
solo: true
},
hide: {
fixed: true
},
style: {
border: {
width: 3,
radius: 8
},
width: 180,
margin: 10,
textAlign: 'left',
tip: true,
name: 'cream'
},
tip: true
});
});
.... dans mon Body
...ca boucle
<div id="containerevent" style="position: relative; min-height: 50px"><div class="tblsubject" style="margin-top: 0px; width: 100%">
<a href="#" title="" alt="TEST33" class="qtipon">
<div class="labelvaluematrix" style="background-color: #FFD700;"></div>
</a>
<div class="infos">
<input type="hidden" value="TEST33" class="sujet" />
<input type="hidden" value="" class="desc" />
<input type="hidden" value="5" class="idevent" />
<input type="hidden" value="06:30" class="heuredebutevent" />
<input type="hidden" value="15:00" class="heurefinevent" />
</div>
</div>
<div class="tblsubject" style="margin-top: 10px; width: 100%">
<a href="#" title="" alt="SEANCE CIE" class="qtipon">
<div class="labelvaluematrix" style="background-color: #A0A0A0;"></div>
</a>
<div class="infos">
<input type="hidden" value="SEANCE CIE" class="sujet" />
<input type="hidden" value="" class="desc" />
<input type="hidden" value="6" class="idevent" />
<input type="hidden" value="06:30" class="heuredebutevent" />
<input type="hidden" value="12:00" class="heurefinevent" />
</div>
</div>
@irwinv
Copy link
Author

irwinv commented Jul 12, 2012

ça marche nickel, ca bug pas c'est impec thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment