summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2016-07-25 17:17:15 +0200
committerChristophe Simonis <chs@odoo.com>2016-07-25 17:17:15 +0200
commitcfb0c0deadae316d9bbcae4d6d177a75f3dbbce4 (patch)
tree961774158c47e97694ec1093f947262beaa0eef1 /addons/web_editor/static/src/js
parent77d231546d252c3f83d54c18d75864a15bc09b24 (diff)
parent7ae5121877aec43a19a447b9b9d6a37f4a5633c2 (diff)
[MERGE] forward port branch saas-11 up to 7ae5121
Diffstat (limited to 'addons/web_editor/static/src/js')
-rw-r--r--addons/web_editor/static/src/js/widgets.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/web_editor/static/src/js/widgets.js b/addons/web_editor/static/src/js/widgets.js
index aad71c06b6c..001070ca7d1 100644
--- a/addons/web_editor/static/src/js/widgets.js
+++ b/addons/web_editor/static/src/js/widgets.js
@@ -1064,17 +1064,17 @@ var LinkDialog = Dialog.extend({
var isNewWindow = this.$('input.window-new').prop('checked');
if ($e.hasClass('email-address') && $e.val().indexOf("@") !== -1) {
- self.get_data_buy_mail(def, $e, isNewWindow, label, classes);
+ self.get_data_buy_mail(def, $e, isNewWindow, label, classes, test);
} else {
- self.get_data_buy_url(def, $e, isNewWindow, label, classes);
+ self.get_data_buy_url(def, $e, isNewWindow, label, classes, test);
}
return def;
},
- get_data_buy_mail: function (def, $e, isNewWindow, label, classes) {
+ get_data_buy_mail: function (def, $e, isNewWindow, label, classes, test) {
var val = $e.val();
def.resolve(val.indexOf("mailto:") === 0 ? val : 'mailto:' + val, isNewWindow, label, classes);
},
- get_data_buy_url: function (def, $e, isNewWindow, label, classes) {
+ get_data_buy_url: function (def, $e, isNewWindow, label, classes, test) {
def.resolve($e.val(), isNewWindow, label, classes);
},
save: function () {