X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2340ebeaf34778645e6071e8b077df50e5ae3df5..7fb83a3380e62721801a4980c48ba78208c7b2e2:/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..f8dbed59c4 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(""