Simplify the handling of moves to the beginning or end of the album

This commit is contained in:
Tim Almdal
2009-04-19 18:42:53 +00:00
parent 663c38a7e8
commit e8d99f22a1
+2 -4
View File
@@ -74,13 +74,11 @@ var droppable = {
$("#gDragHelper li").each(function(i) {
switch (dropTarget) {
case 0:
$("#gPlaceHolder").before($("#thumb_" + $(this).attr("ref")).show());
break;
case 1:
$("#gMicroThumbGrid").prepend($("#thumb_" + $(this).attr("ref")).show());
$("#gPlaceHolder").before($("#thumb_" + $(this).attr("ref")).show());
break;
case 2:
$("#gMicroThumbGrid").append($("#thumb_" + $(this).attr("ref")).show());
$("#gPlaceHolder").before($("#thumb_" + $(this).attr("ref")).show());
break;
}
});