Skip to content

Commit

Permalink
fixes MDL-9195 mform->hardFreeze() doesn't remove id attribute of lab…
Browse files Browse the repository at this point in the history
…el for checkbox
  • Loading branch information
jamiesensei committed Apr 4, 2007
1 parent 7bc643e commit 377d7c7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/form/checkbox.php
Expand Up @@ -99,5 +99,19 @@ function onQuickFormEvent($event, $arg, &$caller)
}
return true;
} // end func onQuickFormEvent
/**
* Slightly different container template when frozen. Don't want to use a label tag
* with a for attribute in that case for the element label but instead use a div.
* Templates are defined in renderer constructor.
*
* @return string
*/
function getElementTemplateType(){
if ($this->_flagFrozen){
return 'static';
} else {
return 'default';
}
}
}
?>

0 comments on commit 377d7c7

Please sign in to comment.