From c97963f226cfc85fa2febb93d9083e3513efeda6 Mon Sep 17 00:00:00 2001 From: Jo Michael Date: Wed, 11 Apr 2012 15:46:01 +0200 Subject: [PATCH] 'Check/uncheck all' links not working when used twice due to removeProp(checked) --- js/functions.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/functions.js b/js/functions.js index 21f65effc5..46fb5a0ee6 100644 --- a/js/functions.js +++ b/js/functions.js @@ -652,10 +652,10 @@ var marked_row = new Array; * * @param container DOM element */ -function markAllRows( container_id ) +function markAllRows(container_id) { - $("#"+container_id).find("input:checkbox:enabled").prop('checked', true) + $("#" + container_id).find("input:checkbox:enabled").prop('checked', true) .parents("tr").addClass("marked"); return true; } @@ -666,10 +666,10 @@ function markAllRows( container_id ) * * @param container DOM element */ -function unMarkAllRows( container_id ) +function unMarkAllRows(container_id) { - $("#"+container_id).find("input:checkbox:enabled").removeProp('checked') + $("#" + container_id).find("input:checkbox:enabled").prop('checked', false) .parents("tr").removeClass("marked"); return true; }