MDL-26167 lib/form: Altering Javascript so that "disabledIf" will disable the "Choose" button for a filepicker

This commit is contained in:
Aaron Wells 2011-04-12 14:30:13 +12:00
parent 91787c37e1
commit 4b72f9eb78
4 changed files with 22 additions and 2 deletions

View file

@ -57,6 +57,7 @@ class file_picker implements renderable {
'itemid' => 0,
'maxbytes'=>-1,
'maxfiles'=>1,
'buttonname'=>false,
);
foreach ($defaults as $key=>$value) {
if (empty($options->$key)) {