REPOSITORY/MDL-13766
pass mimetype and return value type to file picker to filter repository instances
This commit is contained in:
@@ -92,7 +92,6 @@ $output .= <<<EOF
|
||||
};
|
||||
}
|
||||
function moodlefilemanager(field_name, url, type, win) {
|
||||
//alert(id2suffix[tinyMCE.selectedInstance.editorId]);
|
||||
var suffix = id2suffix[tinyMCE.selectedInstance.editorId];
|
||||
document.body.className += ' yui-skin-sam';
|
||||
var picker = document.createElement('DIV');
|
||||
@@ -100,7 +99,7 @@ $output .= <<<EOF
|
||||
picker.id = 'file-picker-'+suffix;
|
||||
document.body.appendChild(picker);
|
||||
var el = win.document.getElementById(field_name);
|
||||
eval('openpicker_'+suffix+'({"env":"editor","target":el})');
|
||||
eval('openpicker_'+suffix+'({"env":"editor","target":el, "mimetype":type})');
|
||||
}
|
||||
EOF;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user