Remove deprecated and unused fileDownloadPath
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
8110a3be69
commit
576e44f890
|
@ -506,10 +506,5 @@ var folderDropOptions = {
|
||||||
tolerance: 'pointer'
|
tolerance: 'pointer'
|
||||||
};
|
};
|
||||||
|
|
||||||
// override core's fileDownloadPath (legacy)
|
|
||||||
function fileDownloadPath(dir, file) {
|
|
||||||
return OCA.Files.Files.getDownloadUrl(file, dir);
|
|
||||||
}
|
|
||||||
|
|
||||||
// for backward compatibility
|
// for backward compatibility
|
||||||
window.Files = OCA.Files.Files;
|
window.Files = OCA.Files.Files;
|
||||||
|
|
|
@ -46,17 +46,6 @@ function escapeHTML(s) {
|
||||||
return s.toString().split('&').join('&').split('<').join('<').split('>').join('>').split('"').join('"').split('\'').join(''');
|
return s.toString().split('&').join('&').split('<').join('<').split('>').join('>').split('"').join('"').split('\'').join(''');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the path to download a file
|
|
||||||
* @param {string} file The filename
|
|
||||||
* @param {string} dir The directory the file is in - e.g. $('#dir').val()
|
|
||||||
* @return {string} Path to download the file
|
|
||||||
* @deprecated use Files.getDownloadURL() instead
|
|
||||||
*/
|
|
||||||
function fileDownloadPath(dir, file) {
|
|
||||||
return OC.filePath('files', 'ajax', 'download.php')+'?files='+encodeURIComponent(file)+'&dir='+encodeURIComponent(dir);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @namespace */
|
/** @namespace */
|
||||||
var OCP = {},
|
var OCP = {},
|
||||||
OC = {
|
OC = {
|
||||||
|
|
Loading…
Reference in New Issue