Merge branch 'wip-MDL-32106-MOODLE_21_STABLE' of git://github.com/marinaglancy/moodle into MOODLE_21_STABLE

This commit is contained in:
Aparup Banerjee
2012-03-27 10:10:31 +08:00
+3 -3
View File
@@ -657,13 +657,13 @@ M.core_filepicker.init = function(Y, options) {
params['author'] = author.get('value');
}
if (this.options.env == 'editor') {
if (this.options.externallink && this.options.env == 'editor') {
// in editor, images are stored in '/' only
params.savepath = '/';
// when image or media button is clicked
if ( this.options.return_types != 1 ) {
var linkexternal = Y.one('#linkexternal-'+client_id).get('checked');
if (linkexternal) {
var linkexternal = Y.one('#linkexternal-'+client_id);
if (linkexternal && linkexternal.get('checked')) {
params['linkexternal'] = 'yes';
}
} else {