jerocosio / autoform-cloudinary

Easily upload images to Meteor using Cloudinary and Simple Schema
13 stars 11 forks source link

_blank target doesn't work on cordova #13

Open ipstas opened 8 years ago

ipstas commented 8 years ago

<a href="{{url}}" target="_blank"> on cordova would open the link in the same browser window. There is no way to get back to app on iPhone in that case as there is no back button. And app stays in that window until it is closed

I would suggest to use something like that in events:

    'click .link': function (event, template) {
        var href = blankUrl;
        if (Meteor.isCordova)
            var ref = cordova.InAppBrowser.open(href, '_blank', 'location=yes');
        else
            window.open(blankUrl, '_blank');
    },

Also, why not just replace the picture on clicking on it? Why to open it? I think it is more logical to replace the picture in the form by clicking on it

jerocosio commented 4 years ago

Hey @ipstas I saw that you did a great job on your fork, would you like to submit a pull request to update the package to the latest versions. From all the fork I looked into, yours is probably the one that's been updated the most.

Regards!