Small optimizations

This commit is contained in:
OhaiBBQ 2010-11-01 14:58:53 -07:00
parent 8b0d20dec7
commit a548ab1345

View file

@ -24,8 +24,8 @@ $(function() {
$("ul .person").draggable({ $("ul .person").draggable({
revert: true, revert: true,
start: function(event,ui){ start: function(event,ui){
$(this).children("img").animate({'height':80, 'width':80, 'opacity':0.8},200); $(this).children("img").animate({'height':80, 'width':80, 'opacity':0.8},200)
$(this).children("img").tipsy("hide"); .tipsy("hide");
$(".draggable_info").fadeIn(100); $(".draggable_info").fadeIn(100);
}, },
drag: function(event,ui){ drag: function(event,ui){
@ -67,7 +67,7 @@ $(function() {
}}); }});
} }
$(this).closest("ul").append(person); dropzone.closest("ul").append(person);
} }
}); });
@ -96,8 +96,6 @@ $(function() {
} }
} }
}); });
}); });
@ -107,7 +105,6 @@ $(".delete").live("click", function() {
var person = $(this).closest("li.person"); var person = $(this).closest("li.person");
if (person.hasClass('request')){ if (person.hasClass('request')){
if( confirm("Ignore request?") ){ if( confirm("Ignore request?") ){
var request_id = person.attr("data-guid"); var request_id = person.attr("data-guid");
@ -121,7 +118,6 @@ $(".delete").live("click", function() {
} }
} else { } else {
if( confirm("Remove this person from all aspects?") ){ if( confirm("Remove this person from all aspects?") ){
var person_id = $(this).closest("li.person").attr('data-guid'); var person_id = $(this).closest("li.person").attr('data-guid');