File Manager Callback
Permalink 1 user found helpful
Hi,
I'm working on an add on and I call the filemanager like so:
However, once the image is chosen, I need to pass the fID to javascript to handle. How do I do that?
In 5.6 I simply assigned ccm_chooseAsset to a function. I need to know the equivalent in 5.7.
Thanks.
Jeff
PS: Where is the non-minified file-manager.js in GitHub?
I'm working on an add on and I call the filemanager like so:
<?php echo $al->image('ccm-b-image', 'fID', t('Add Image'), $bf, $args);?>
However, once the image is chosen, I need to pass the fID to javascript to handle. How do I do that?
In 5.6 I simply assigned ccm_chooseAsset to a function. I need to know the equivalent in 5.7.
Thanks.
Jeff
PS: Where is the non-minified file-manager.js in GitHub?
It looks like:
does the trick. However, how do I restrict it to images? It seems that "$al->image" doesn't restrict itself to images either. I'm pretty sure that's a bug.
Jeff