         effect: -> $(this).fadeIn(400)
         ready: true
       hide:
-        event: false
+        event: 'unfocus'
         effect: -> $(this).fadeOut(100)
       style:
         classes: 'qtip-shadow qtip-light qtip-rounded'

        height: '70px'
      events: 
        render: (event, api) ->
          #Add event listener for each of the "required" "optional" and "forbidden" buttons inside the menu
          clickedIndex = $('#unallocated li').index($(clickedOn))
          $("#mamenu-required-btn").click -> network.moveToRequired(clickedIndex)

          $("#mamenu-forbidden-btn").click -> network.moveToForbidden(clickedIndex)

          #In general, remove the allocation menu one someone clicks any of the buttons
          $(".mamenu-button").click (event) -> api.hide()

        hidden: (event, api) ->
          # Removes the buttons since even though they're hidden, they're still there.
          # This fixes the click listner bug.
          $('.mamenu-button').remove()



  ###*
