Skip to content

Commit

Permalink
Code style fixes for confirmMove option for SortableColumn
Browse files Browse the repository at this point in the history
  • Loading branch information
arogachev committed Jan 27, 2016
1 parent 501cb64 commit d87aabd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/assets/src/js/sortable-column.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,11 @@
return;
}

if (this.isMoveConfirmed() === true && !confirm(this.getMoveConfirmationText())) {
if (this.isMoveConfirmed() && !confirm(this.getMoveConfirmationText())) {
this.resetPosition();
this.getSortable().sortable('cancel');

return;

}

this.getPositionEl().removeClass('label-info').addClass('label-warning');
Expand Down
2 changes: 1 addition & 1 deletion src/grid/SortableColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class SortableColumn extends Column
public $gridContainerId;

/**
* @var bool
* @var boolean
*/
public $confirmMove = true;
/**
Expand Down

0 comments on commit d87aabd

Please sign in to comment.