'Check/uncheck all' links not working when used twice due to removeProp(checked)

This commit is contained in:
Jo Michael 2012-04-11 15:46:01 +02:00
parent bb850fa2d9
commit c97963f226

View File

@ -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;
}