X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/5523be76b00bc58cf9568cf7a1353326c6795cac..85c625c40ad873d0efac33f8a63c1ee256185e36:/apps/workbench/app/assets/javascripts/select_modal.js diff --git a/apps/workbench/app/assets/javascripts/select_modal.js b/apps/workbench/app/assets/javascripts/select_modal.js index 3b51faad6a..19cf3cd927 100644 --- a/apps/workbench/app/assets/javascripts/select_modal.js +++ b/apps/workbench/app/assets/javascripts/select_modal.js @@ -1,3 +1,7 @@ +// Copyright (C) The Arvados Authors. All rights reserved. +// +// SPDX-License-Identifier: AGPL-3.0 + $(document).on('click', '.selectable', function() { var any; var $this = $(this); @@ -99,8 +103,9 @@ $(document).on('click', '.selectable', function() { message = "Request failed."; } this.modal.find('.modal-error'). - html('
' + message + '
'). - show(); + html('
'). + show(). + children().text(message); }). done(function(data, status, jqxhr) { var event_name = this.action_data.success; @@ -119,6 +124,7 @@ $(document).on('click', '.selectable', function() { 'project_uuid': project_uuid }; } + $(".modal-dialog-preview-pane").html(""); // Use current selection as dropdown button label $(this). closest('.dropdown-menu'). @@ -151,7 +157,7 @@ $(document).on('click', '.selectable', function() { return false; } $(''). - attr('href', $form.attr('data-search-modal')). + attr('data-remote-href', $form.attr('data-search-modal')). attr('data-remote', 'true'). attr('data-method', 'GET'). hide().