base/app/assets/javascripts/social_stream/object.js in social_stream-2.0.0.beta2 vs base/app/assets/javascripts/social_stream/object.js in social_stream-2.0.0.beta3
- old
+ new
@@ -68,17 +68,22 @@
var changeRelationSelect = function(type) {
$('[name$="[relation_ids][]"]').attr('name', type + '[relation_ids][]');
};
+ var changeOwner = function(type) {
+ $('[name$="[owner_id]"]').attr('name', type + '[owner_id]');
+ };
+
callback.register('show',
SS.Comment.index,
SS.Audience.index);
callback.register('new_',
initRelationSelect);
return callback.extend({
+ changeOwner: changeOwner,
changeRelationSelect: changeRelationSelect
});
})(SocialStream, jQuery);