mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-51921 files: Fixes for file manager issues
Fixed the issue where the file path select box goes beyond the container with very long folder names. Instead of setting to "width: auto", I set it the select box's "width: 100%" so that it will just fill up its container's width. Fixed the issue where markups are being shown on file aliases.
This commit is contained in:
parent
53378d63e2
commit
4b573f4d42
3 changed files with 9 additions and 2 deletions
|
@ -960,8 +960,12 @@ M.form_filemanager.init = function(Y, options) {
|
||||||
for (var i in attrs) {
|
for (var i in attrs) {
|
||||||
if (selectnode.one('.fp-'+attrs[i])) {
|
if (selectnode.one('.fp-'+attrs[i])) {
|
||||||
var value = (node[attrs[i]+'_f']) ? node[attrs[i]+'_f'] : (node[attrs[i]] ? node[attrs[i]] : '');
|
var value = (node[attrs[i]+'_f']) ? node[attrs[i]+'_f'] : (node[attrs[i]] ? node[attrs[i]] : '');
|
||||||
|
// Escape if the attribute being evaluated is not for the list of reference files.
|
||||||
|
if (attrs[i] !== 'reflist') {
|
||||||
|
value = Y.Escape.html(value);
|
||||||
|
}
|
||||||
selectnode.one('.fp-'+attrs[i]).addClassIf('fp-unknown', ''+value == '')
|
selectnode.one('.fp-'+attrs[i]).addClassIf('fp-unknown', ''+value == '')
|
||||||
.one('.fp-value').setContent(Y.Escape.html(value));
|
.one('.fp-value').setContent(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// display thumbnail
|
// display thumbnail
|
||||||
|
|
|
@ -1257,6 +1257,9 @@ a.ygtvspacer:hover {
|
||||||
}
|
}
|
||||||
.controls {
|
.controls {
|
||||||
margin-left: 125px;
|
margin-left: 125px;
|
||||||
|
select {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.controls.control-radio input {
|
.controls.control-radio input {
|
||||||
margin-top: 3px;
|
margin-top: 3px;
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue