1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
6 on('click', '.component-detail-panel', function(event) {
7 var href = $($(event.target).attr('href'));
8 if ($(href).hasClass("in")) {
9 var content_div = href.find('.work-unit-component-detail-body');
10 content_div.html('<div class="spinner spinner-32px col-sm-1"></div>');
11 var content_url = href.attr('content-url');
12 var action_data = href.attr('action-data');
13 $.ajax(content_url, {dataType: 'html', type: 'POST', data: {action_data: action_data}}).
14 done(function(data, status, jqxhr) {
15 content_div.html(data);
16 }).fail(function(jqxhr, status, error) {
17 content_div.html(error);