2872: Disable chooser OK button until selection is made, update run-pipeline wording.
[arvados.git] / apps / workbench / app / views / application / _choose.js.erb
1 $('body > .modal-container').html("<%= escape_javascript(render partial: 'choose.html', locals: {multiple: multiple}) %>");
2 $('body > .modal-container .modal').modal('show');
3 $('body > .modal-container .modal .modal-footer .btn-primary').
4     addClass('<%= j params[:action_class] %>').
5     attr('data-action-href', '<%= j params[:action_href] %>').
6     attr('data-method', '<%= j params[:action_method] %>').
7     data('action-data', <%= raw params[:action_data] %>);
8 $(document).trigger('ajax:complete');