X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/1b7d5cef1b7890994826a44102b589124a2a2340..eaa312ea7c35e35c64dbef9624be1d9c7df034ef:/apps/workbench/app/assets/javascripts/selection.js diff --git a/apps/workbench/app/assets/javascripts/selection.js b/apps/workbench/app/assets/javascripts/selection.js index d70794dc0a..1e32c63564 100644 --- a/apps/workbench/app/assets/javascripts/selection.js +++ b/apps/workbench/app/assets/javascripts/selection.js @@ -49,15 +49,21 @@ jQuery(function($){ } var update_count = function(e) { + var html; + var this_object_uuid = $('#selection-form-content'). + closest('form'). + find('input[name=uuid]').val(); var lst = get_selection_list(); $("#persistent-selection-count").text(lst.length); if (lst.length > 0) { - $('#selection-form-content').html( - '
  • Clear selections
  • ' - + '
  • ' - + '
  • '); + html = '
  • Clear selections
  • '; + if (this_object_uuid.match('-j7d0g-')) + html += '
  • '; + html += '
  • ' + + '
  • '; + $('#selection-form-content').html(html); for (var i = 0; i < lst.length; i++) { $('#selection-form-content > li > table').append("" @@ -119,7 +125,7 @@ jQuery(function($){ }); add_form_selection_sources = null; -select_form_sources = null; +select_form_sources = null; (function() { var form_selection_sources = {};