Fixed issue #33 were in newer browsers after dropping on the pagination arrows the edit screen would be displayed

This commit is contained in:
Ed 2013-04-19 19:32:47 -03:00
parent 399dc0ab89
commit 4827b8e909

View File

@ -4,7 +4,6 @@
onmatch: function() { onmatch: function() {
var self=this; var self=this;
var refCheckbox=$(this); var refCheckbox=$(this);
var gridField=this.getGridField(); var gridField=this.getGridField();
if($(this).is(':checked')) { if($(this).is(':checked')) {
@ -55,7 +54,8 @@
activeClass: 'sortablerows-droptarget', activeClass: 'sortablerows-droptarget',
tolerance: 'pointer', tolerance: 'pointer',
drop: function(event, ui) { drop: function(event, ui) {
gridField.find('tbody').sortable('cancel'); event.stopPropagation();
event.stopImmediatePropagation();
var button=refCheckbox.parent().find('.sortablerows-sorttopage'); var button=refCheckbox.parent().find('.sortablerows-sorttopage');
var itemID=$(ui.draggable).data('id'); var itemID=$(ui.draggable).data('id');
@ -84,9 +84,6 @@
value: target value: target
} }
]}); ]});
event.stopPropagation();
event.stopImmediatePropagation();
} }
}); });
}); });