Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug 1382535: Keep translations on delete #652

Merged
merged 1 commit into from Jul 28, 2017

Conversation

mathjazz
Copy link
Collaborator

@flodolo Do you feel comfortable reviewing this?

I'm working on FTL bugfixes and I thought this one was one of them, too. I fixed it by mistake.

$('#clear').click();
if (self.cachedTranslation === $('#translation').val()) {
$('#clear').click();
}
Copy link
Collaborator Author

@mathjazz mathjazz Jul 28, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens here is now is that we check if the text in the translation input is different than the last active translations (cachedTranslation). If yes, we don't clear the input.

@flodolo
Copy link
Collaborator

flodolo commented Jul 28, 2017

Testing, should be easy enough.

Copy link
Collaborator

@flodolo flodolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code change makes sense, and it works correctly locally.

@mathjazz mathjazz merged commit e1044b7 into mozilla:master Jul 28, 2017
@mathjazz mathjazz deleted the bug-1382535-dont-clear-on-delete branch July 28, 2017 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants