Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed issue #33 were in newer browsers after dropping on the paginati…

…on arrows the edit screen would be displayed
  • Loading branch information...
commit 4827b8e9091aee9d01f901533b758796e6271321 1 parent 399dc0a
@UndefinedOffset authored
Showing with 2 additions and 5 deletions.
  1. +2 −5 javascript/GridFieldSortableRows.js
View
7 javascript/GridFieldSortableRows.js
@@ -4,7 +4,6 @@
onmatch: function() {
var self=this;
var refCheckbox=$(this);
-
var gridField=this.getGridField();
if($(this).is(':checked')) {
@@ -55,7 +54,8 @@
activeClass: 'sortablerows-droptarget',
tolerance: 'pointer',
drop: function(event, ui) {
- gridField.find('tbody').sortable('cancel');
+ event.stopPropagation();
+ event.stopImmediatePropagation();
var button=refCheckbox.parent().find('.sortablerows-sorttopage');
var itemID=$(ui.draggable).data('id');
@@ -84,9 +84,6 @@
value: target
}
]});
-
- event.stopPropagation();
- event.stopImmediatePropagation();
}
});
});
Please sign in to comment.
Something went wrong with that request. Please try again.