From c3693875b868daabca2d350abc9e39062115bff9 Mon Sep 17 00:00:00 2001 From: Marc Bennewitz Date: Mon, 17 Jun 2013 13:26:24 +0200 Subject: [PATCH] Use jQuery.fn.prop to set a property of an element (instead of jQuery.fn.attr) It's deprecated and triggers a note since `jquery.migration` --- media/src/core/core.length.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/media/src/core/core.length.js b/media/src/core/core.length.js index 60c58040..2331e07e 100644 --- a/media/src/core/core.length.js +++ b/media/src/core/core.length.js @@ -1,5 +1,4 @@ - /** * Generate the node required for user display length changing * @param {object} oSettings dataTables settings object @@ -48,7 +47,7 @@ function _fnFeatureHtmlLength ( oSettings ) * Set the length to the current display length - thanks to Andrea Pavlovic for this fix, * and Stefan Skopnik for fixing the fix! */ - $('select option[value="'+oSettings._iDisplayLength+'"]', nLength).attr("selected", true); + $('select option[value="'+oSettings._iDisplayLength+'"]', nLength).prop("selected", true); $('select', nLength).bind( 'change.DT', function(e) { var iVal = $(this).val();