Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

feature request: fallback alert/confirm on popups #4649

@frequent

Description

@frequent

@gabrielschulhof:

As I'm struggling with the popup closing hashChange I set up fallback alert/confirm messages as a fallback. Would be nice to have this as an option, so if a popup had a class of popContent and looked like so:

<div data-role="popup" id="pop_entry" data-theme="a" data-fallback="alert">          
        <div class="ui-content popContent">#tx_basket_pop_info#</br></br>#tx_basket_pop_hint#</div>           
</div>  

I'm now fallback to something like this when opening the popup:

var txt = $('#pop_entry.popContent').text();
alert( txt );

Could also be done with a confirm (data-true/false=respective_action)

On the other hand, maybe this is a little against the idea of the widget. Nevertheless, features request :-)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions