     @avatars.show()
 
 
+  handleCollaborationLoading: ->
+
+    @share.setClass 'loading'
+    @share.updatePartial 'Loading'
+
+
   handleCollaborationEnded: ->
 
+    @share.unsetClass 'loading'
     @share.updatePartial 'Share'
     @avatars.destroySubViews()
 
 
   handleCollaborationStarted: ->
 
+    @share.unsetClass 'loading'
     @share.updatePartial 'Chat'
+
+

    @on 'ShowAvatars',          @bound 'showAvatars'
    @on 'ParticipantLeft',      @bound 'dimParticipantAvatar'
    @on 'ParticipantJoined',    @bound 'addParticipantAvatar'
    @on 'CollaborationEnded',   @bound 'handleCollaborationEnded'
    @on 'CollaborationStarted', @bound 'handleCollaborationStarted'
    @on 'ParticipantWatched',   @bound 'decorateWatchedAvatars'


    @addSubView @share = new CustomLinkView
      href     : "#{kd.singletons.router.getCurrentPath()}/share"
      title    : 'Loading'
      cssClass : 'share fr hidden'
      click    : (event) ->
        kd.utils.stopDOMEvent event
        return  if @hasClass 'loading'
        appManager.tell 'IDE', 'showChat'  unless collabDisabled

    @addSubView @avatars = new KDCustomHTMLView cssClass : 'avatars fr'
