Sha256: fcd446a59d9ce61875bcb864ea3daa6d68d957d89809952a2bd638c7b418fc52
Contents?: true
Size: 1.06 KB
Versions: 25
Compression:
Stored size: 1.06 KB
Contents
//= require select2 // //= require social_stream/callback SocialStream.Profile = (function(SS, $, undefined){ var callback = new SS.Callback(); var initEditButtons = function(options) { $("#profile-info .update").filter(function(i, el) { return options.section.length === 0 || $(el).closest('section').attr('class').indexOf(options.section) === -1; }).hide(); $("#profile-info .edit_icon a[href=#]").click(function(event){ event.preventDefault(); var section = $(this).closest('section')[0]; $("#profile-info section").each(function(i, el) { if (el === section) return true; $(el).find('.briefing').show(); $(el).find('.update').hide(); }); $(section).find('.briefing').toggle('slow'); $(section).find('.update').toggle('slow'); }); }; var initTagsForm = function(options){ SS.Tag.select2("#profile_tag_list"); }; callback.register('show', initEditButtons, initTagsForm); return callback.extend({ }); })(SocialStream, jQuery);
Version data entries
25 entries across 25 versions & 2 rubygems