Skip to content

Commit

Permalink
Merge pull request #2167 from dwbutler/ordered-multiselect-append-new
Browse files Browse the repository at this point in the history
Add new item to the end of ordered multiselect instead of beginning
  • Loading branch information
mshibuya committed Aug 4, 2015
2 parents 7aee78b + 2fe2d50 commit f8647e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/rails_admin/ra.remote-form.js
Expand Up @@ -109,7 +109,7 @@
select.find('option[value=' + json.id + ']').text(json.label);
multiselect.find('option[value= ' + json.id + ']').text(json.label);
} else { // add
select.prepend(option);
select.append(option);
multiselect.find('select.ra-multiselect-selection').append(option);
}
}
Expand Down

0 comments on commit f8647e6

Please sign in to comment.