20259: Add documentation for banner and tooltip features
[arvados.git] / apps / workbench / app / assets / javascripts / select_modal.js
index 17b334eb643438631eb35c3b8ffa31d04d9c2d30..19cf3cd927f04d5b7c22f41fba15d5a86c83af89 100644 (file)
@@ -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);
@@ -120,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').