Row();
      } else {
        editExistingRow($toEdit);
      }
    });

    $('#confirmDialog').on('click', '.confirm-dialog-pf-cancel, .close', function (e) {
      $(e.delegateTarget).modal('hide');
      $('.list-view-pf-save:not(:disabled):not(:hidden)').trigger('focus');
    });

    $('#confirmDialog').on('keydown', '.confirm-dialog-pf-ok', function (e) {
      if (e.which === 9) {
        e.preventDefault();
        $(e.delegateTarget).find('.modal-header .close').trigger('focus');
      }
    });

