Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getWorkerUrl !!!! #3401

Closed
johnfort opened this issue Sep 19, 2021 · 2 comments
Closed

getWorkerUrl !!!! #3401

johnfort opened this issue Sep 19, 2021 · 2 comments
Assignees

Comments

@johnfort
Copy link

getWorkerUrl : function(filename) { return this.convAbsUrl(this.baseUrl + 'js/worker/' + filename); }
I want to have another way!
Add & rewrite plz: BaseUrl, BaseUrl_i18n, BaseUrl_help, BaseUrl_workers

@nao-pon nao-pon self-assigned this Nov 1, 2021
@nao-pon
Copy link
Member

nao-pon commented Nov 12, 2021

@johnfort I add a new option workerBaseUrl into elFinder.options.js.

@nao-pon
Copy link
Member

nao-pon commented Nov 12, 2021

/**
* Base URL of elfFinder library starting from Manager HTML
* Auto detect when empty value
*
* @type String
* @default ""
*/
baseUrl : '',
/**
* Base URL of i18n js files
* baseUrl + "js/i18n/" when empty value
*
* @type String
* @default ""
*/
i18nBaseUrl : '',
/**
* Base URL of worker js files
* baseUrl + "js/worker/" when empty value
*
* @type String
* @default ""
*/
workerBaseUrl : '',

help url is fm.i18nBaseUrl + 'help/%s.html.js'

if ($.inArray('help', parts) !== -1) {
helpSource = fm.i18nBaseUrl + 'help/%s.html.js';
help();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants