mirror of
https://github.com/UndefinedOffset/SortableGridField.git
synced 2024-10-22 17:05:38 +02:00
Fixed issue #33 were in newer browsers after dropping on the pagination arrows the edit screen would be displayed
This commit is contained in:
parent
399dc0ab89
commit
4827b8e909
@ -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();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user