mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-04 14:11:01 -04:00
Simplify the handling of moves to the beginning or end of the album
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user