Do nothing when dragged tab is dropped onto itself

This commit is contained in:
Kevin Sawicki
2013-02-11 11:16:14 -08:00
parent 07ff931082
commit 94ba8c1191

View File

@@ -76,6 +76,7 @@ class TabView extends SortableList
droppedNearTab = @getSortableElement(event)
draggedTab = fromPane.find(".#{TabView.viewClass()} .sortable:eq(#{previousDraggedTabIndex})")
return if draggedTab[0] is droppedNearTab[0]
draggedTab.remove()
draggedTab.insertAfter(droppedNearTab)