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:
Jun Pataleta 2015-10-27 13:41:34 -05:00
parent 53378d63e2
commit 4b573f4d42
3 changed files with 9 additions and 2 deletions

View file

@ -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

View file

@ -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