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

The window does not close if 403 error #2616

Closed
johnfort opened this issue Aug 16, 2018 · 3 comments
Closed

The window does not close if 403 error #2616

johnfort opened this issue Aug 16, 2018 · 3 comments
Assignees

Comments

@johnfort
Copy link

johnfort commented Aug 16, 2018

var opts = {
		url: '...',
		requestType: 'post',
		rememberLastDir: false,
		title: '...',
		width: 1000,
		height: 500,
		resizable: false,
		uiOptions: {
			toolbar: [...]
		},
		commandsOptions:{
			getfile:{
				onlyURL: false,
				folders: false,
				multiple: false,
				oncomplete: 'destroy'
			}
		},
		getFileCallback: function(file, el){
			$('.mce-open').parent().children('input[id^="mceu_"]').val(file['path']);
		}
	}
	$('<div style="z-index: 999999">').dialogelfinder(opts);
@nao-pon
Copy link
Member

nao-pon commented Aug 17, 2018

@fortcms Do you want an action specification (ex. Onerror: 'destroy') when an error occurs in the getFileCallback function?

@johnfort
Copy link
Author

@nao-pon connector return 403.
https://ibb.co/iNp7qz
https://ibb.co/bAUU3K

@nao-pon
Copy link
Member

nao-pon commented Aug 18, 2018

@fortcms OK, This is a bug of elfinder.js. I'll fix it. Thanks! 👍

@nao-pon nao-pon self-assigned this Aug 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants