Skip to content

Commit

Permalink
Merge pull request #2360 from fmh/patch-4
Browse files Browse the repository at this point in the history
prevent double click on disabled option
  • Loading branch information
mshibuya committed Jul 16, 2015
2 parents a515b37 + e075a0c commit e0fbb40
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 e0fbb40

Please sign in to comment.