app/assets/javascripts/social_stream/contact.js in social_stream-base-2.2.0 vs app/assets/javascripts/social_stream/contact.js in social_stream-base-2.2.1

- old
+ new

@@ -169,10 +169,17 @@ $('html').on('click.dropdown.data-api', saveForms); }; // new_ callbacks + var initHideModal = function() { + $('#add-contact-modal').on('hide', function () { + $('input[name="actors"]').select2('close'); + $('select[name="relations[]"]').select2('close'); + }); + }; + var initActorSelect2 = function() { SS.Actor.select2('input[name="actors"]'); }; var initRelationSelect2 = function() { @@ -296,9 +303,10 @@ initFilter, initNewGroupModal, hideLoading); callback.register('new_', + initHideModal, initActorSelect2, initRelationSelect2); callback.register('update', updateForms,