- $(this).closest('.tab-pane').on('arv:pane:reload', function(e) {
- // Do not let this tab auto-refresh.
- e.stopPropagation();
- });
- });
-}).on('ready ajax:complete', function(){
- $(".arv-log-event-listener[data-object-uuids-live]").each(function() {
- // Look at data-object-uuid attribute of elements matching
- // given selector, so the event listener can listen for events
- // that appeared on the page via ajax.
- var $listener = $(this);
- var have_uuids = '' + $listener.attr('data-object-uuids');
- $($listener.attr('data-object-uuids-live')).each(function() {
- var this_uuid = $(this).attr('data-object-uuid');
- if (have_uuids.indexOf(this_uuid) == -1) {
- have_uuids = have_uuids + ' ' + this_uuid;
- }
- });
- $listener.attr('data-object-uuids', have_uuids);
- });