Browse Source

Debug de la reserve link

remotes/svn/ModulesALaMano
Chouchen 9 years ago
parent
commit
2a7b957440
2 changed files with 25 additions and 8 deletions
  1. +24
    -0
      db/links.xml
  2. +1
    -8
      js/jquery.links.js

+ 24
- 0
db/links.xml View File

@@ -140,5 +140,29 @@
<img>mail-yahoo.png</img>
<title>Yahoo Mail</title>
</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>
</links>

+ 1
- 8
js/jquery.links.js View File

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


Loading…
Cancel
Save