Profile select search field is disabled
authorGenericUK <mark@boardmark.co.uk>
Wed, 5 Nov 2014 15:17:27 +0000 (15:17 +0000)
committerGenericUK <mark@boardmark.co.uk>
Wed, 5 Nov 2014 15:17:27 +0000 (15:17 +0000)
Fixes an issue in events online registration profile selector, on already saved profiles the search field is disabled by readonly attribute.

js/view/crm.profile-selector.js

index befceec4cebc30407d65c5169d9f028d073eb5f1..764c649bc4446241a0c3185c05896b617470e9e0 100644 (file)
       }
     },
     disableForm: function() {
-      this.$(':input', '.crm-profile-selector-preview-pane').prop('readOnly', true);
+      this.$(':input', '.crm-profile-selector-preview-pane').not('.select2-input').prop('readOnly', true);
     },
     doEdit: function(e) {
       e.preventDefault();