base/app/assets/javascripts/social_stream/object.js in social_stream-2.0.0.beta3 vs base/app/assets/javascripts/social_stream/object.js in social_stream-2.0.0

- old
+ new

@@ -64,15 +64,15 @@ } return icon + ' ' + text + ' <b class="caret"></b>'; }; - var changeRelationSelect = function(type) { - $('[name$="[relation_ids][]"]').attr('name', type + '[relation_ids][]'); + var changeRelationSelect = function(type, selector) { + $('[name$="[relation_ids][]"]', selector).attr('name', type + '[relation_ids][]'); }; - var changeOwner = function(type) { - $('[name$="[owner_id]"]').attr('name', type + '[owner_id]'); + var changeOwner = function(type, selector) { + $('[name$="[owner_id]"]', selector).attr('name', type + '[owner_id]'); }; callback.register('show', SS.Comment.index, SS.Audience.index);