Skip to content

Commit

Permalink
Merge pull request #1 from zmedanic/master
Browse files Browse the repository at this point in the history
Update Sortable.php
  • Loading branch information
kartik-v committed Aug 12, 2014
2 parents 55ea19f + 8ae0145 commit c51e413
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sortable/Sortable.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ public function registerAssets()
$view = $this->getView();
SortableAsset::register($view);
$this->registerPlugin('sortable');
$id = '$("#' . $this->options['id'] . '")';
$id = 'jQuery("#' . $this->options['id'] . '")';
if ($this->disabled) {
$js = "{$id}.sortable('disable');";
} else {
$js = "{$id}.sortable('enable');";
}
$view->registerJs($js);
}
}
}

0 comments on commit c51e413

Please sign in to comment.