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:
@@ -960,8 +960,12 @@ M.form_filemanager.init = function(Y, options) {
|
||||
for (var i in attrs) {
|
||||
if (selectnode.one('.fp-'+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 == '')
|
||||
.one('.fp-value').setContent(Y.Escape.html(value));
|
||||
.one('.fp-value').setContent(value);
|
||||
}
|
||||
}
|
||||
// display thumbnail
|
||||
|
||||
@@ -1251,6 +1251,9 @@ a.ygtvspacer:hover {
|
||||
}
|
||||
.controls {
|
||||
margin-left: 125px;
|
||||
select {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
.controls.control-radio input {
|
||||
margin-top: 3px;
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user