[elFinder] after close won't show again
Added by Emanuel Coelho 11 months ago
Hello guys,
I have a little problem with elFinder. I'll try to explain the best I can.
When I click the button to open elfinder it opens and let me do the work without any problem. The thing is when I try to open it again, without reloading the page it won't show again. But if I reload the page I can open it again just for one time, then I have the same problem.
Other thing is that the menu bar is not showing, but when i try to inspect the Network transitions, and images loaded there aren't any failure.
I leave a link to the images of the first time I open it and the second one.
http://imageshack.us/photo/my-images/823/1sttimeg.jpg/ -> First time i open it.
http://imageshack.us/photo/my-images/832/2ndtime.jpg/ -> Second time i open it, tithour reloading the page.
Thanks,
Elkas
Replies (6)
RE: elFinder after close won't show again
-
Added by Emanuel Coelho 11 months ago
Hi again guys.
I've tried the previous version, the 1.1, and worked perfectly....
Regards,
Elkas
RE: elFinder after close won't show again
-
Added by Troex Nevelin 11 months ago
Please give us the full code how you use elFinder with text editor, and see the output of firebug console.
RE: elFinder after close won't show again
-
Added by Emanuel Coelho 11 months ago
Well i'm calling it like this (javascript inside PHP):
$('.add_imagem').click(function() {
var input = $(this).parents('.form_module_right').children('.div_ListImages');
var inputObject = input.children(':hidden');
var imgField = input.children('img');
var fm = new elFinder(document.getElementById('elfinderdiv'), {
url : '<?= base_url() ?>resources/elFinder/connectors/php/connector.php',
lang : 'en',
docked : false,
cutURL: '',
dialog : { title : 'File Manager', height: 500 },
editorCallback: function(url) {
inputObject.val(url);
imgField.attr('src', urlCall+"image_controller/getImage/120"+url);
imgField.attr('alt', url);
//verifica se já existe o botão
if(!imgField.parent().find('input:button').length >0){
imgField.parent().append('<input type="button" name="thumb" value="" class="deleteImagem" rel="thumb"/>');
}
}
});
});
The output of the console is this one:
http://cl.ly/1t313i1O080y3e3d0Q3V/Image_2011-07-08_at_6.59.04_PM.png
http://cl.ly/2n2k0d111R1w3j3b0X45/Image_2011-07-08_at_7.00.30_PM.png
RE: elFinder after close won't show again
-
Added by Troex Nevelin 11 months ago
You are trying to create elFinder again on the same element when you click second time, instead you need to open the existing elFinder again, or you need to create elFinder on new node.
Call this code when you open elfinder for second+ time:
$('#elfinderdiv').elfinder('open');
RE: elFinder after close won't show again
-
Added by Emanuel Coelho 11 months ago
humm... i see.
Ok, i'll try that. I'll have to change my code to a more dynamic one and improved one so when i reach the elFinder part i'll change it to that.
Thanks guys
Regards,
Elkas
RE: [elFinder] after close won't show again
-
Added by Emanuel Coelho 10 months ago
Hey guys,
The problem is solved with that.
Thanks.
Regards,
Elkas
(1-6/6)