Skip to content

Commit

Permalink
Updated PR for tracker #28256. Closes #1734.
Browse files Browse the repository at this point in the history
  • Loading branch information
roland-d committed Jul 15, 2014
1 parent 4c90045 commit 714dc3e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libraries/cms/html/grid.php
Expand Up @@ -136,14 +136,15 @@ public static function checkall($name = 'checkall-toggle', $tip = 'JGLOBAL_CHECK
* @param integer $recId The record id
* @param boolean $checkedOut True if item is checke out
* @param string $name The name of the form element
* @param string $stub The name of stub identifier
*
* @return mixed String of html with a checkbox if item is not checked out, null if checked out.
*
* @since 1.5
*/
public static function id($rowNum, $recId, $checkedOut = false, $name = 'cid')
public static function id($rowNum, $recId, $checkedOut = false, $name = 'cid', $stub = 'cb')
{
return $checkedOut ? '' : '<input type="checkbox" id="cb' . $rowNum . '" name="' . $name . '[]" value="' . $recId
return $checkedOut ? '' : '<input type="checkbox" id="' . $stub . $rowNum . '" name="' . $name . '[]" value="' . $recId
. '" onclick="Joomla.isChecked(this.checked);" />';
}

Expand Down

0 comments on commit 714dc3e

Please sign in to comment.