Skip to content
Snippets Groups Projects
Commit 2e074cb3 authored by Christophe Matthieu's avatar Christophe Matthieu
Browse files

[FIX] web_editor: don't display translation modal for attribute on tag who have content

parent 5257721b
No related branches found
No related tags found
No related merge requests found
......@@ -129,7 +129,7 @@ var Translate = Widget.extend({
var attrs = ['placeholder', 'title', 'alt'];
_.each(attrs, function (attr) {
$target.find('['+attr+'*="data-oe-translation-id="]').each(function () {
$target.find('['+attr+'*="data-oe-translation-id="]').filter(':empty, input, select, textarea, img').each(function () {
var $node = $(this);
var translation = $node.data('translation') || {};
var trans = $node.attr(attr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment