     $("#addRightUi").parent().append(right)
     $("#addRightUi").parent().append(" ")
     populateRightComboBox()
+    enableSaveButtonIfPossible()
 
   #Wire up Add Role button
   $("#addGroupButton").click ->

    editRowIndex = lastRow
    drawEditBox(newRow)
    editRow(lastRow)

  #Wire up reset to defaults
  $("#resetToDefaultsButton").click ->

    div.wrap("<div/>")
    td.append(div.parent())
    $("#addRoleUi input").val("")
    enableSaveButtonIfPossible()
  
rowMouseEnter = (row) ->   
  if (editRowIndex < 0)
    drawEditBox(row)

enableSaveButtonIfPossible = ()  ->
  roles = getRoles(editRowIndex)  
  rights = getRights(editRowIndex)  
  if roles.length > 0 && rights.length > 0
    $("#rowEditToolSaveButton").removeClass("disabled")
    

drawEditBox = (row) ->
  lastRow = row.parent().children().index(row) + 1
