Debug de la reserve link

This commit is contained in:
Chouchen 2010-09-23 13:44:04 +00:00
parent 702f7d13e3
commit 2a7b957440
2 changed files with 25 additions and 8 deletions

View File

@ -140,5 +140,29 @@
<img>mail-yahoo.png</img> <img>mail-yahoo.png</img>
<title>Yahoo Mail</title> <title>Yahoo Mail</title>
</link> </link>
<link>
<url>http://www.meebo.com/messenger/</url>
<onclick>popup</onclick>
<img>meebo.png</img>
<title>Meebo</title>
</link>
<link>
<url>http://www.mail.com</url>
<onclick>popup</onclick>
<img>mailcom.png</img>
<title>Mail.com</title>
</link>
<link>
<url>http://www.xp-dev.com</url>
<onclick>popup</onclick>
<img>xp-dev.png</img>
<title>XP-DEV</title>
</link>
<link>
<url>http://www.leboncoin.fr</url>
<onclick>popup</onclick>
<img>leboncoin.gif</img>
<title>LeBonCoin</title>
</link>
</reserve> </reserve>
</links> </links>

View File

@ -5,7 +5,6 @@ $(document).ready(function(){
// Apparition de la reserve de liens // Apparition de la reserve de liens
$('#links-menu').live('click', function(){ $('#links-menu').live('click', function(){
//$('#reserve').show();
$.get('ajax/loadReserve.php', function(html){ $.get('ajax/loadReserve.php', function(html){
$.fancybox( $.fancybox(
html, html,
@ -24,7 +23,7 @@ $(document).ready(function(){
$('#reserveiconlist .item').live('click', function(e){ $('#reserveiconlist .item').live('click', function(e){
e.preventDefault(); e.preventDefault();
$.post("ajax/reserveToList.php", {reserve: $(this).attr('id')}); $.post("ajax/reserveToList.php", {reserve: $(this).attr('id')});
$('.iconlist').last().append($(this).parent().html()); $('.iconlist').last().append('<li class="item" id="'+$(this).attr('id')+'">'+$(this).html()+'</li>');
$.fancybox.close(); $.fancybox.close();
}); });
@ -41,12 +40,10 @@ $(document).ready(function(){
$.post("ajax/listToReserve.php", {reserve: $(this).parent().attr('id')}); $.post("ajax/listToReserve.php", {reserve: $(this).parent().attr('id')});
$(this).parent().fadeOut(); $(this).parent().fadeOut();
}); });
// ??
// Mouvement des liens avec enregistrement // Mouvement des liens avec enregistrement
$(".iconlist").sortable( $(".iconlist").sortable(
{ {
//distance: 45,
connectWith: '.iconlist', connectWith: '.iconlist',
update: function(event,ui){ update: function(event,ui){
var linkOrder = $(this).sortable('toArray').toString(); var linkOrder = $(this).sortable('toArray').toString();
@ -57,10 +54,6 @@ $(document).ready(function(){
start: function(e) { start: function(e) {
// have to remvoe click handler off item so drop doesn't click // have to remvoe click handler off item so drop doesn't click
$("a.popup").unbind("click"); $("a.popup").unbind("click");
},
stop: function(e) {
//$("a.popup").bind("click", function(e){ itemClickHandler(e, $(this)); });
//$("a.popup").click(itemClickHandler);
} }
} }
).disableSelection().mouseout(function(){ ).disableSelection().mouseout(function(){