ome / omero-figure

An OMERO.web app for creating Figures from images in OMERO
http://figure.openmicroscopy.org
GNU Affero General Public License v3.0
15 stars 30 forks source link

Openwith to handle function instead of URL #425

Open will-moore opened 3 years ago

will-moore commented 3 years ago

See https://github.com/ome/omero-web/pull/232 for similar fixes in webclient.

If an open-with handler returns a function:

OME.setOpenWithUrlProvider("omero_figure", function (selected, url) {
     return function() {
        alert("Handle open...")
     }
});

This needs to happen ONLY when user clicks on the Open-with option, NOT when we simply render a link.