Skip to content

Commit

Permalink
Merge pull request #11 from lake83/master fixes #10
Browse files Browse the repository at this point in the history
JS fix
  • Loading branch information
Aris Karageorgos authored Sep 9, 2016
2 parents 7946b3d + b1a0f30 commit b3db785
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ToggleColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ protected function renderDataCellContent($model, $key, $index)
public function registerJs()
{
$js = <<<'JS'
$("a.toggle-column").on("click", function(e) {
$(document.body).on("click", "a.toggle-column", function(e) {
e.preventDefault();
$.post($(this).attr("href"), function(data) {
var pjaxId = $(e.target).closest("[data-pjax-container]").attr("id");
Expand Down

0 comments on commit b3db785

Please sign in to comment.