Skip to content

Commit

Permalink
prevent double click on disabled option
Browse files Browse the repository at this point in the history
  • Loading branch information
fmh committed Jul 15, 2015
1 parent a515b37 commit e075a0c
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
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

var edit_url = dom_widget.find('select').first().data('options') && dom_widget.find('select').first().data('options')['edit-url'];
if(typeof(edit_url) != 'undefined' && edit_url.length) {
dom_widget.on('dblclick', '.ra-multiselect option', function(e){
dom_widget.on('dblclick', '.ra-multiselect option:not(:disabled)', function(e){
widget._bindModalOpening(e, edit_url.replace('__ID__', this.value))
});
}
Expand Down

0 comments on commit e075a0c

Please sign in to comment.