From 57decbbed6d3d8899b09a58361ae9b30d39a9c03 Mon Sep 17 00:00:00 2001 From: Jeremy Kersten Date: Tue, 11 Sep 2018 22:35:22 +0200 Subject: [PATCH] [FIX] web_editor: fix and improve AltDialog Ref label Add tooltip Fix title from modal -> before this commit, modal title was wrongly replaced by title of image :/ task-1878245 --- addons/web_editor/static/src/js/widgets/widgets.js | 2 +- addons/web_editor/static/src/xml/editor.xml | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/addons/web_editor/static/src/js/widgets/widgets.js b/addons/web_editor/static/src/js/widgets/widgets.js index 02a08f711dc..dd0982bf3be 100644 --- a/addons/web_editor/static/src/js/widgets/widgets.js +++ b/addons/web_editor/static/src/js/widgets/widgets.js @@ -83,7 +83,7 @@ var AltDialog = Dialog.extend({ this.$editable = $editable; this.media = media; this.alt = ($(this.media).attr('alt') || "").replace(/"/g, '"'); - this.title = ($(this.media).attr('title') || "").replace(/"/g, '"'); + this.tag_title = ($(this.media).attr('title') || "").replace(/"/g, '"'); }, //-------------------------------------------------------------------------- diff --git a/addons/web_editor/static/src/xml/editor.xml b/addons/web_editor/static/src/xml/editor.xml index 76369f1fc98..ac5cbe6d07b 100644 --- a/addons/web_editor/static/src/xml/editor.xml +++ b/addons/web_editor/static/src/xml/editor.xml @@ -31,15 +31,21 @@
- +
- +
- +