Updated filemanager to handle downloading PDfs, opening icons, and fixed favicon.

This commit is contained in:
xevidos 2018-07-18 17:00:52 -04:00
parent 92d2636372
commit 4e292284eb
2 changed files with 71 additions and 71 deletions

View File

@ -4,86 +4,86 @@
* [root]/license.txt for more. This information must remain intact.
*/
(function(global, $){
(function(global, $){
var codiad = global.codiad;
$(window)
.load(function() {
codiad.filemanager.CodiadnoFiles = [
//Files
'exe',
'pdf',
'zip',
'tar',
'tar.gz',
]
codiad.filemanager.CodiadnoImages = [
//Images
'ico',
'icon',
'jpg',
'jpeg',
'png',
'gif',
'bmp',
]
codiad.filemanager.CodiadnoAudio = [
//Music
'aac',
'aif',
'mp3',
'mp4',
'wav',
'ogg',
]
codiad.filemanager.init();
});
var codiad = global.codiad;
$(window)
.load(function() {
codiad.filemanager.init();
});
codiad.filemanager = {
clipboard: '',
noFiles: [
//Files
'exe',
'zip',
'tar',
'tar.gz',
],
noImages: [
//Images
'jpg',
'jpeg',
'png',
'gif',
'bmp',
],
noMusic: [
//Music
'aac',
'aif',
'mp3',
'mp4',
'wav',
'ogg',
],
noOpen: [
//Files
'exe',
'zip',
'tar',
'tar.gz',
//Images
'jpg',
'jpeg',
'png',
'gif',
'bmp',
//Music
'aac',
'aif',
'mp3',
'mp4',
'wav',
'ogg',
],
noBrowser: [
//Images
'jpg',
'jpeg',
'png',
'gif',
'bmp',
//Music
'aac',
'aif',
'mp3',
'mp4',
'wav',
'ogg',
],
controller: 'components/filemanager/controller.php',
dialog: 'components/filemanager/dialog.php',
dialogUpload: 'components/filemanager/dialog_upload.php',
init: function() {
this.noAudio = [
//Audio
'aac',
'aif',
'mp3',
'mp4',
'wav',
'ogg',
],
this.noFiles = [
//Files
'exe',
'pdf',
'zip',
'tar',
'tar.gz',
],
this.noImages = [
//Images
'ico',
'icon',
'jpg',
'jpeg',
'png',
'gif',
'bmp',
],
this.noOpen = this.noAudio.concat( this.noFiles, this.noImages ),
this.noBrowser = this.noAudio.concat( this.noImages ),
// Initialize node listener
this.nodeListener();
// Load uploader
@ -471,7 +471,7 @@
let type = "";
var ext = this.getExtension(path).toLowerCase();
if ( this.noMusic.includes(ext) ) {
if ( this.noAudio.includes(ext) ) {
type = 'music_preview';
} else if ( this.noImages.includes(ext) ) {

0
favicon.ico Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB