REPOSITORY/MDL-13766

pass mimetype and return value type to file picker to filter repository instances
This commit is contained in:
dongsheng
2008-11-26 03:26:33 +00:00
parent c977816479
commit b318bb6db2
5 changed files with 53 additions and 11 deletions
+1 -2
View File
@@ -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;