Paramjit Singh Sahota(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-1096811-psa into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #1096811 in OpenERP Web: "[General Web] traceback when clicking on a link 
that doesn't open a new window or tab"
  https://bugs.launchpad.net/openerp-web/+bug/1096811

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1096811-psa/+merge/142272

Hello,

Fixed the issue,
> Traceback when clicking on a link that doesn't open a new window or tab.

> Wherever we click on the link in Etherpad lite it will open that link in new 
> tab rather than opening in the same tab.

Thankz YoU.
 -PSA.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1096811-psa/+merge/142272
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-1096811-psa.
=== modified file 'pad/static/src/js/pad.js'
--- pad/static/src/js/pad.js	2012-12-13 14:58:55 +0000
+++ pad/static/src/js/pad.js	2013-01-08 09:41:53 +0000
@@ -49,7 +49,7 @@
                     this.pad_loading_request = $.get(value+'/export/html')
                     .done(function(data){
                         groups = /\<\s*body\s*\>(.*?)\<\s*\/body\s*\>/.exec(data);
-                        data = (groups || []).length >= 2 ? groups[1] : '';
+                        data = ((groups || []).length >= 2 ? groups[1] : '').replace(/<a\s+href=/gi, '<a target="_blank" href=');
                         self.$('.oe_pad_content').html('<div class="oe_pad_readonly"><div>');
                         self.$('.oe_pad_readonly').html(data);
                     }).error(function(){

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : openerp-dev-gtk@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to