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:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
});
|
@@ -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'));
|
||||
|
||||
|
Reference in New Issue
Block a user