Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:zanata/zanata
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Eng committed Jul 8, 2011
2 parents f2967e2 + 44d28cc commit 0e9af9b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Expand Up @@ -390,19 +390,12 @@ public void setText(String text)

public void editCell(CellEditInfo cellEditInfo, TransUnit cellValue, Callback<TransUnit> callback)
{

// don't allow edits of two cells at once
// if (isDirty())
// {
// callback.onCancel(cellEditInfo);
// return;
// }
// save the content in previous cell before start new editing
if (this.cellValue != null && !textArea.getText().equals(this.cellValue.getTarget()))
{
Log.debug("save content of previous cell");
acceptEdit();
}

if (isEditing())
{
Expand All @@ -412,6 +405,13 @@ public void editCell(CellEditInfo cellEditInfo, TransUnit cellValue, Callback<Tr
}
restoreView();
}

// save the content in previous cell before start new editing
if (this.cellValue != null && curRow != cellEditInfo.getRowIndex() && !textArea.getText().equals(this.cellValue.getTarget()))
{
Log.debug("save content of previous cell");
acceptEdit();
}

Log.debug("starting edit of cell");

Expand Down
Binary file modified server/zanata-war/src/main/webapp/img/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0e9af9b

Please sign in to comment.