From 87e0d43844bcaae6e77fcdea3f24991e266cae06 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Wed, 5 Feb 2014 14:02:23 +0000 Subject: [PATCH] Fix: Column visiblity was using $().remove() to remove elements from the DOM which results in any events attached being detached by jQuery. Need to use `detach()` - Thanks to sebgoe in thread 19360 --- .datatables-commit-sync | 2 +- media/js/jquery.dataTables.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.datatables-commit-sync b/.datatables-commit-sync index c966d16e..b51d8880 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -0bad6ae070822c2ed55a47610f7f6262926353d5 +efedff77e37c7a32cca9710ee7e008968047801e diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index f3c09512..843a2d19 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -7921,7 +7921,7 @@ } else { // Remove column - $( _pluck( settings.aoData, 'anCells', column ) ).remove(); + $( _pluck( settings.aoData, 'anCells', column ) ).detach(); col.bVisible = false; _fnDrawHead( settings, settings.aoHeader );