javascript - Archive Buttons Are Always disabled No Matter What -
i'm extending java connector of missing cmds. can't figure out why archive buttons greyed out. i'm using 2.x nightly build.
i tried adding following end of server java connector's response cmd=open
"options": { "copyoverwrite": 1, "path": "desktop", "archivers": { "create": [ "zip", "rar", "7z" ], "extract": [ "zip", "rar", "7z" ] }, "disabled": [], "separator": "/" }
this enabled create (archive) button, extract still disabled when zip archive example selected.
a little progress here
as can seen here extract not working
i had through php code, js , docs , haven't come across suspescts
i tried this.alwaysenabled = true; in elfinder.prototype.command jsdoc says: "if true, command can not disabled connector." have assume it's not connector.
is there other reason why extract disabled? or js code section can step through feel how works
using mime types in json server response open works
"archivers": { "create": [ "application/x-tar", "application/x-gzip", "application/x-bzip2", "application/x-xz", "application/zip", "application/x-7z-compressed" ], "extract": [ "application/x-tar", "application/x-gzip", "application/x-bzip2", "application/x-xz", "application/zip", "application/x-7z-compressed" ] }
Comments
Post a Comment