fix issue #1021 Move Column Right doesn't work

This commit is contained in:
jackyq2015 2015-07-24 21:24:41 -04:00
parent ee38f9edde
commit 6181224b22

View File

@ -184,7 +184,7 @@ DataTableColumnHeaderUI.extendMenu(function(column, columnHeaderUI, menu) {
var doMoveColumnBy = function(change) {
var newidx = Refine.columnNameToColumnIndex(column.name) + change;
if (newidx > 0 && newidx < Refine.columnNameToColumnIndex(column.name)) {
if (newidx >= 0) {
Refine.postCoreProcess(
"move-column",
{