mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[MIG] web_widget_open_tab: Migration to 13.0
This commit is contained in:
@@ -36,7 +36,7 @@ odoo.define("web_widget_open_tab.FieldOpenTab", function(require) {
|
||||
_renderReadonly: function() {
|
||||
var $content = $("<a/>", {
|
||||
href: this._getReference(),
|
||||
class: "open_tab_widget fa fa-eye",
|
||||
class: "open_tab_widget fa fa-external-link",
|
||||
});
|
||||
var self = this;
|
||||
$content.tooltip({
|
||||
@@ -60,7 +60,7 @@ odoo.define("web_widget_open_tab.FieldOpenTab", function(require) {
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
var element = $(ev.currentTarget).find("a");
|
||||
if (element != null && element[0].href != null) {
|
||||
if (element !== null && element[0].href !== null) {
|
||||
window.open(this._getReference());
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user