mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-27 16:29:22 +01:00
fixed "Save as" / forced download for known mime-types
This commit is contained in:
parent
735b24fe9c
commit
4b83719907
@ -515,6 +515,10 @@ function force_download(_action, _senders)
|
|||||||
{
|
{
|
||||||
var a_href = $j(_senders[0].iface.getDOMNode()).find("a:first").attr("href");
|
var a_href = $j(_senders[0].iface.getDOMNode()).find("a:first").attr("href");
|
||||||
|
|
||||||
|
if (a_href.indexOf("menuaction=") != -1)
|
||||||
|
{
|
||||||
|
a_href = a_href.replace(/index.php?.*$/, "webdav.php"+_senders[0].id);
|
||||||
|
}
|
||||||
window.location = a_href+"?download";
|
window.location = a_href+"?download";
|
||||||
}
|
}
|
||||||
</script>'."\n";
|
</script>'."\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user