Fix collab editor fails to open files with spaces in their names

This commit is contained in:
Hadi Nategh 2017-01-04 14:42:17 +01:00
parent fdad5d0fcf
commit b91560f79c
2 changed files with 2 additions and 2 deletions

View File

@ -628,7 +628,7 @@ function expose (widget)
{ {
egw.open_link(egw.link('/index.php', { egw.open_link(egw.link('/index.php', {
menuaction: 'filemanager.filemanager_ui.editor', menuaction: 'filemanager.filemanager_ui.editor',
path: _value.download_url path: decodeURIComponent(_value.download_url)
}), '', egw.link_get_registry('filemanager','view_popup')); }), '', egw.link_get_registry('filemanager','view_popup'));
} }
}); });

View File

@ -769,7 +769,7 @@ app.classes.filemanager = AppJS.extend(
{ {
egw.open_link(egw.link('/index.php', { egw.open_link(egw.link('/index.php', {
menuaction: 'filemanager.filemanager_ui.editor', menuaction: 'filemanager.filemanager_ui.editor',
path: data.data.download_url path: decodeURIComponent(data.data.download_url)
}), '', egw.link_get_registry('filemanager','view_popup')); }), '', egw.link_get_registry('filemanager','view_popup'));
} }
else else