From d87aabdb137472759c023a077d6c09d54853d03e Mon Sep 17 00:00:00 2001 From: Alexey Rogachev Date: Wed, 27 Jan 2016 09:23:09 +0600 Subject: [PATCH] Code style fixes for confirmMove option for SortableColumn --- src/assets/src/js/sortable-column.js | 3 +-- src/grid/SortableColumn.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/assets/src/js/sortable-column.js b/src/assets/src/js/sortable-column.js index ab2ea14..c5b1a7c 100644 --- a/src/assets/src/js/sortable-column.js +++ b/src/assets/src/js/sortable-column.js @@ -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'); diff --git a/src/grid/SortableColumn.php b/src/grid/SortableColumn.php index 84a7b9d..6fbcc7a 100644 --- a/src/grid/SortableColumn.php +++ b/src/grid/SortableColumn.php @@ -33,7 +33,7 @@ class SortableColumn extends Column public $gridContainerId; /** - * @var bool + * @var boolean */ public $confirmMove = true; /**