We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
c.f. #1811
e.g. Open confirmation dialog before executing command open, tree. (Live Demo)
open
tree
fm.bind('request.open request.tree', function(e) { var dfrd = $.Deferred(), cmd = e.type.substr(8), opts = e.data.opts; fm.confirm({ title : 'Command cancel test', text : 'Do you want to continue?', accept: { label : 'btnYes', callback : function() { dfrd.resolve(); } }, cancel: { label : 'btnNo', callback : function() { dfrd.reject(); if (cmd === 'tree') { setTimeout(function() { // restore arrow state $('#' + fm.navHash2Id(opts.target)) .removeClass('elfinder-subtree-loaded') .addClass(fm.res('class', 'navcollapse')); }, 10); } } } }); e.data.result = dfrd; });
The text was updated successfully, but these errors were encountered:
c6ffbed
[js:core] change event name execpre.cmd to request.cmd c.f. #1817
execpre.cmd
request.cmd
1bae9f0
No branches or pull requests
c.f. #1811
e.g. Open confirmation dialog before executing command
open
,tree
. (Live Demo)The text was updated successfully, but these errors were encountered: