Purpose

Allows the user to select a resource for a dropzone by using a folder view dialogue box.

Signature

calli.selectResource( event, [src] )

Parameter Description
event HTML click event
src (optional) URL of the page in the dialogue

Example


<a href="/scheme/medimus/top" title="Browse Mediums"
    onclick="return calli.selectResource(event)"
    class="ui-icon ui-icon-folder-open" />

Detailed logic

Here is how the method operates in more detail.

IF ... THEN ...
no src is provided the href attribute of the event.target will be used
the Select button is clicked the subject of the current page is dropped onto event.target as a s:text/uri-list