                     loader    :
                       color   : "#444"
                       diameter: 12
-                    callback  : ->
-                      listController.getItemsOrdered().forEach (view) ->
+                    callback  : =>
+                      recipients = listController.getItemsOrdered()
+                      recipients.forEach (view) ->
                         view.getData().invite (err) =>
                           return log err  if err
                           view.emit "InvitationSent"
                       modal.destroy()
+                      @track recipients.length
                   Cancel      :
                     style     : "modal-clean-red"
                     callback  : -> modal.destroy()

    options.width          = 570
    options.overlay        = yes
    options.title          = "Get free space up to 16GB"
    options.url          or= "#{location.origin}/?r=#{KD.nick}"
    options.tabs           =
      navigable            : no
      goToNextFormOnSubmit : no


    @setPositions()

  track: (count) ->
    KD.kdMixpanel.track "User Sent Invitation", $user: KD.nick(), count: count

  dontShowAgain: ->
    storage = KD.getSingleton("appStorageController").storage "MainApp"
    storage.setValue "dontDisplayReferrerModalAgain", yes
