Skip to content

Commit

Permalink
Fix bug 1382535: Keep translations on delete (#652)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathjazz committed Jul 28, 2017
1 parent 004e092 commit e1044b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pontoon/base/static/js/translate.js
Expand Up @@ -2045,7 +2045,9 @@ var Pontoon = (function (my) {

// Last translation deleted, no alternative available
} else {
$('#clear').click();
if (self.cachedTranslation === $('#translation').val()) {
$('#clear').click();
}

if (entity.body && pluralForm === 0) {
self.postMessage("DELETE", {
Expand Down

0 comments on commit e1044b7

Please sign in to comment.