Re: [openstack-dev] [Horizon][DataTables] how to generate a confirmation dialog

2016-11-07 Thread John Calcote
Thanks Timur! That's exactly what I needed!

On Mon, Nov 7, 2016 at 2:50 AM, Timur Sufiev  wrote:
> 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  wrote:
>>
>> Ping. No thoughts on this from anyone?
>>
>>
>> On Nov 4, 2016 9:26 PM, "John Calcote"  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-requ...@lists.openstack.org?subject:unsubscribe
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [Horizon][DataTables] how to generate a confirmation dialog

2016-11-07 Thread Timur Sufiev
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  wrote:

> Ping. No thoughts on this from anyone?
>
> On Nov 4, 2016 9:26 PM, "John Calcote"  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-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [Horizon][DataTables] how to generate a confirmation dialog

2016-11-06 Thread John Calcote
Ping. No thoughts on this from anyone?

On Nov 4, 2016 9:26 PM, "John Calcote"  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-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [Horizon][DataTables] how to generate a confirmation dialog

2016-11-04 Thread John Calcote
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-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev