Commit 8007fdc7 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Don't put 'null' in the file description field in IE

parent f8beffdd
......@@ -177,7 +177,7 @@ function FileBrowser(idprefix, folderid, config, globalconfig) {
addElementClass(self.id + '_edit_row', 'hidden');
$(self.id + '_edit_heading').innerHTML = self.filedata[id].artefacttype == 'folder' ? get_string('editfolder') : get_string('editfile');
$(self.id + '_edit_title').value = self.filedata[id].title;
$(self.id + '_edit_description').value = self.filedata[id].description;
$(self.id + '_edit_description').value = self.filedata[id].description == null ? '' : self.filedata[id].description;
$(self.id + '_edit_tags').value = self.filedata[id].tags.join(', ');
replaceChildNodes($(self.id + '_edit_messages'));
forEach(getElementsByTagAndClassName('input', 'permission', self.id + '_edit_row'), function (elem) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment