From e7d3ddc50d9f805cd8f42d170cbe8ccc13aa8e6e Mon Sep 17 00:00:00 2001 From: Adam Messinger Date: Tue, 25 Jun 2013 14:22:02 -0400 Subject: [PATCH] Fix for jQuery 1.9+ incompatibility Swapped out .attr() method for .prop() when setting "checked" property on checkboxes. jQuery 1.9 and up don't offer backward compatibility for the old approach anymore. --- jquery.mediaTable.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jquery.mediaTable.js b/jquery.mediaTable.js index 4b3dad5..8f641cd 100644 --- a/jquery.mediaTable.js +++ b/jquery.mediaTable.js @@ -198,10 +198,10 @@ http://www.consulenza-web.com/2012/01/mediatable-jquery-plugin/ //if ( $th.css("display") == "table-cell") { if ( $th.is(':visible') ) { - $checkbox.attr("checked", true); + $checkbox.prop("checked", true); } else { - $checkbox.attr("checked", false); + $checkbox.prop("checked", false); }; }; @@ -284,7 +284,7 @@ http://www.consulenza-web.com/2012/01/mediatable-jquery-plugin/ } - // Mantengo la possibilitˆ di concatenare plugins. + // Mantengo la possibilit� di concatenare plugins. return this; }; // EndOf: "$.fn.mediaTable()" ###