fixes MDL-9195 mform->hardFreeze() doesn't remove id attribute of label for checkbox

This commit is contained in:
jamiesensei
2007-04-04 10:27:16 +00:00
parent 78fdca9618
commit 1859dfe70d
+14
View File
@@ -99,5 +99,19 @@ class MoodleQuickForm_checkbox extends HTML_QuickForm_checkbox{
}
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';
}
}
}
?>