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