Skip to content

Is there interest in making it possible to support non-blocking message popups in jQuery UJS? #260

@webmat

Description

@webmat

Hey guys,

I'm using $ UJS in a Cordova app (initially PhoneGap), and everything works ok.

However, since $ UJS uses confirm, I don't have much control on the title of the popups: example

Cordova offers a notification API with better customizability, but the call is non-blocking, as opposed to confirm.

So I'm currently working out a sensible way to use Cordova's non-blocking notifications by patching jQuery UJS. As I see it so far, all calls to $.rails.allowAction will probably have to be rewritten to pass callbacks for "Ok" and "Cancel", instead of doing it with an if (example).

Do you guys think that would be an interesting addition to jQuery UJS, or do you think this is out of scope for this project?

I'll come back and give more information on whatever solution I came up with.

Cheers,

Mat

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions