Skip to content

Commit

Permalink
fix to project selector button, where projects title length overflows
Browse files Browse the repository at this point in the history
also for institutions
  • Loading branch information
stuzart committed Mar 15, 2019
1 parent a9dcf14 commit c0ef06e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/views/people/_project_and_institution_selection.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@

<% end %>



<script type="text/javascript">
$j(document).ready(function () {
$j('#projects').multiselect({maxHeight: 250});
$j('#institutions').multiselect({maxHeight: 250});
$j('#projects').multiselect({maxHeight: 250, buttonWidth: '20em', numberDisplayed: 1});
$j('#institutions').multiselect({maxHeight: 250, buttonWidth: '20em', numberDisplayed: 1});

// hides the warning if a registered project is selected
$j('#projects').change(function() {
Expand Down

0 comments on commit c0ef06e

Please sign in to comment.