From 16dcf4c1367e760b87cb4a3514d7c91a06f61196 Mon Sep 17 00:00:00 2001 From: Artem Tabalin Date: Thu, 25 Aug 2016 01:25:53 +0200 Subject: [PATCH] Demos: Fix reordering demo Fixes #407 --- demos/rows-reordering.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/rows-reordering.html b/demos/rows-reordering.html index 2a97fb67..9f098d50 100644 --- a/demos/rows-reordering.html +++ b/demos/rows-reordering.html @@ -61,7 +61,7 @@

Rows Reordering Scenario

$gridData.sortable({ update: function(e, ui) { // array of indexes - var clientIndexRegExp = /\s+client-(\d+)\s+/; + var clientIndexRegExp = /\s*client-(\d+)\s*/; var indexes = $.map($gridData.sortable("toArray", { attribute: "class" }), function(classes) { return clientIndexRegExp.exec(classes)[1]; });