Skip to content

Commit

Permalink
Demos: Fix reordering demo
Browse files Browse the repository at this point in the history
Fixes  #407
  • Loading branch information
tabalinas committed Aug 24, 2016
1 parent 8f10df1 commit 16dcf4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demos/rows-reordering.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ <h1>Rows Reordering Scenario</h1>
$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];
});
Expand Down

0 comments on commit 16dcf4c

Please sign in to comment.