mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-25 18:08:42 -06:00
[CHG] open link with traget='_blank'
This commit is contained in:
parent
6e8a9a5ebc
commit
77d8a19e4e
@ -16,6 +16,7 @@ odoo.define('document_url', function(require) {
|
||||
redraw: function() {
|
||||
var self = this;
|
||||
this._super.apply(this, arguments);
|
||||
self.$el.find("a[href]").attr('target', '_blank');
|
||||
self.$el.find('.oe_sidebar_add_attachment, .o_sidebar_add_attachment').after(QWeb.render('AddUrlDocumentItem', {widget: self}))
|
||||
self.$el.find('.oe_sidebar_add_url').on('click', function (e) {
|
||||
self.on_url_doc();
|
||||
|
Loading…
Reference in New Issue
Block a user