mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Etemplate: Limit sortable to just the grid's immediate rows, excluding rows in nested grids
This commit is contained in:
parent
b4869aa2a1
commit
eb7a03b191
@ -707,7 +707,7 @@ var et2_grid = /** @class */ (function (_super) {
|
|||||||
// Set up sortable
|
// Set up sortable
|
||||||
$node.sortable({
|
$node.sortable({
|
||||||
// Header does not participate in sorting
|
// Header does not participate in sorting
|
||||||
items: "tr:not(.th)",
|
items: "> tbody > tr:not(.th)",
|
||||||
distance: 15,
|
distance: 15,
|
||||||
cancel: this.options.sortable_cancel,
|
cancel: this.options.sortable_cancel,
|
||||||
placeholder: this.options.sortable_placeholder,
|
placeholder: this.options.sortable_placeholder,
|
||||||
|
@ -965,7 +965,7 @@ export class et2_grid extends et2_DOMWidget implements et2_IDetachedDOM, et2_IAl
|
|||||||
// Set up sortable
|
// Set up sortable
|
||||||
$node.sortable({
|
$node.sortable({
|
||||||
// Header does not participate in sorting
|
// Header does not participate in sorting
|
||||||
items: "tr:not(.th)",
|
items: "> tbody > tr:not(.th)",
|
||||||
distance: 15,
|
distance: 15,
|
||||||
cancel: this.options.sortable_cancel,
|
cancel: this.options.sortable_cancel,
|
||||||
placeholder: this.options.sortable_placeholder,
|
placeholder: this.options.sortable_placeholder,
|
||||||
|
Loading…
Reference in New Issue
Block a user