You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since node.elfinder ('reload') destroys the elFinder instance once, the registered user function is lost.
As a countermeasure, elFinder provides a new registration method for user functions.
Make the callback function registered for preparation for bootup, and register the callback function with the second argument of new elFinder() or with the option value bootCallback.
The this object in the function is an elFinder node
The first parameter is elFinder Instance
The second parameter is an object of other parameters
For now it can use dfrdsBeforeBootup Array
The dfrdsBeforeBootup array has a value ofjQuery.Deferred()object. The bootup sequence is suspended until all jQuery.Deferred() is in the resolved state.
$('#elfinder').elfinder(// 1st Arg - options{// Connector URLurl : 'php/connector.minimal.php'},// 2nd Arg - before boot up functionfunction(fm,extraObj){/* any bind functions etc. */fm.bind('init',function(){// any your code});// for example set document.title dynamically.vartitle=document.title;fm.bind('open',function(){varpath='',cwd=fm.cwd();if(cwd){path=fm.path(cwd.hash)||null;}document.title=path? path+':'+title : title;}).bind('destroy',function(){document.title=title;});});
OR
$('#elfinder').elfinder({url : 'php/connector.minimal.php'// connector URL (REQUIRED)// bootCalback calls at before elFinder boot up ,bootCallback : function(fm,extraObj){/* any bind functions etc. */fm.bind('init',function(){// any your code});// for example set document.title dynamically.vartitle=document.title;fm.bind('open',function(){varpath='',cwd=fm.cwd();if(cwd){path=fm.path(cwd.hash)||null;}document.title=path? path+':'+title : title;}).bind('destroy',function(){document.title=title;});}});
The text was updated successfully, but these errors were encountered:
Since node.elfinder ('reload') destroys the elFinder instance once, the registered user function is lost.
As a countermeasure, elFinder provides a new registration method for user functions.
Make the callback function registered for preparation for bootup, and register the callback function with the second argument of
new elFinder()
or with the option valuebootCallback
.For now it can use
dfrdsBeforeBootup
ArrayThe
dfrdsBeforeBootup
array has a value ofjQuery.Deferred()
object. The bootup sequence is suspended until alljQuery.Deferred()
is in theresolved
state.OR
The text was updated successfully, but these errors were encountered: