         item = $(@menu.data('effective-menu-new-html').replace(/:new/g, "#{unique_id}"))
 
         @menu.children('.actions').before(item)
+        @menu.data('dirty', true)
 
         CKEDITOR.instances[Object.keys(CKEDITOR.instances)[0]].openDialog 'effectiveMenusDialog', (dialog) ->
           dialog.effective_menu_item = item

      # This retVal has to account for multiple effective-menus on one page
      retval[@menu.data('effective-menu-id')] = items

    saveComplete: ->
      @menu.find('.destroyed').remove()

    assignLftRgt: (parent, lft) ->
      rgt = lft + 1

      parent.children('.dropdown-menu').children('li:not(.destroyed)').each (_, child) =>
        rgt = @assignLftRgt($(child), rgt)

      parent.children('li:not(.destroyed)').each (_, child) =>
        rgt = @assignLftRgt($(child), rgt)

      parent.children('.menu-item').children("input[name$='[lft]']").val(lft)

      # so we delete it here
      @menu.find('meta,li.effective-menu-expand').remove()

      @menu.data('dirty', true)

      # Collapse any empty dropdowns we may have expanded back to leafs
      @menu.find('.dropdown-menu:empty').each (index, item) ->
        item = $(item).closest('.dropdown')
