         @squad_name_placeholder.text ''
         @squad_name_placeholder.append short_name
         @squad_name_input.val @current_squad.name
+        @updatePermaLink()
 
     removeAllShips: ->
         while @ships.length > 0


        @fancy_total_points_container.text @total_points
        # update permalink while we're at it
        @permalink.attr 'href', "#{window.location.href.split('?')[0]}?f=#{encodeURI @faction}&d=#{encodeURI @serialize()}"
        # and text list
        @fancy_container.text ''
        @simple_container.html '<table class="simple-table"></table>'

            @addShip()

    resetCurrentSquad: ->
        default_squad_name = 'Unnamed Squadron'
        squad_name = $.trim(@squad_name_input.val()) or $.trim $.getParameterByName('sn') or default_squad_name
        squad_notes = $.trim(@notes.val()) or $.trim $.getParameterByName('sno') or ''
        @current_squad =
            id: null
            name: squad_name
            dirty: false
            additional_data:
                points: @total_points
                description: ''
                cards: []
                notes: squad_notes
            faction: @faction
        if @total_points > 0
            if squad_name == default_squad_name
                @current_squad.name = 'Unsaved Squadron'
            @current_squad.dirty = true
        @notes.val(squad_notes)
        @container.trigger 'xwing-backend:squadNameChanged'
        @container.trigger 'xwing-backend:squadDirtinessChanged'

