[openstack-dev] [Horizon][DataTables] how to generate a confirmation dialog
Timur Sufiev
tsufiev at mirantis.com
Mon Nov 7 09:50:20 UTC 2016
Hi, John,
the code you're looking for is located here:
https://github.com/openstack/horizon/blob/master/horizon/static/horizon/js/horizon.tables.js#L227-L312
This is bound at
https://github.com/openstack/horizon/blob/master/horizon/static/horizon/js/horizon.forms.js#L368-L373
On Sun, Nov 6, 2016 at 10:32 PM John Calcote <john.calcote at gmail.com> wrote:
> Ping. No thoughts on this from anyone?
>
> On Nov 4, 2016 9:26 PM, "John Calcote" <john.calcote at gmail.com> wrote:
>
> Hi all -
>
> I don't see a better forum anywhere for this post - please correct me
> if I'm wrong.
>
> I have a django/horizon application. On one page users may delete
> objects. I'd like to display a modal dialog confirming the delete
> before submit. Can anyone tell me if there's a way to tie a
> confirmation dialog to a table's DeleteAction?
>
> Note - my template is a trivial table.render with multi-select enabled -
> e.g.,
>
> {% block main %}
> {{ table.render }}
> {% endblock %}
>
> I've searched the docs and the code, but nothing sticks out at me. I'm
> not a client-side expert, but I can usually find my way around in the
> chrome debugger.
>
> Thanks,
> John
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20161107/d15974a8/attachment.html>
More information about the OpenStack-dev
mailing list