Automatisation de l'ajax "visibility"

Ajout de la méthode setVisibility à 3 Modèles
Bug Chrome sur les liens éliminé
This commit is contained in:
Chouchen
2010-09-22 14:02:40 +00:00
parent 81bf7cb785
commit 73e97a31be
9 changed files with 91 additions and 53 deletions

View File

@@ -25,16 +25,32 @@ $(document).ready(function(){
// Mouvement des liens avec enregistrement
$(".iconlist").sortable(
{
//distance: 45,
connectWith: '.iconlist',
update: function(event,ui){
var linkOrder = $(this).sortable('toArray').toString();
var label = $(ui.item).parent()[0].id;
var itemMoved = $(ui.item)[0].id;
$.post("ajax/update-links-order.php", {order: linkOrder, label : label, itemMoved: itemMoved});
},
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();
).disableSelection().mouseout(function(){
// reattach the item click handler
$('a.popup').unbind("click").bind("click", function(e){
e.preventDefault();
var url = $(this).attr('href');
spawnURL(url);
});
});
});

View File

@@ -56,7 +56,13 @@ function make_draggable(elements)
}
});
}
$(document).ready(function(){
$('a.popup').bind("click", function(e){
e.preventDefault();
var url = $(this).attr('href');
spawnURL(url);
});
$('body').prepend('<div id="menu-bar"></div>');
$('#menu-bar').prepend($('#config-menu'));