open links in a new window

This commit is contained in:
Vincent Fretin 2013-03-07 09:28:53 +01:00
parent 3054557692
commit d850114042
5 changed files with 5 additions and 2 deletions

View File

@ -39,6 +39,7 @@
/>
<span class="label"><a tal:content="item/label"
class="link-tooltip"
target="_new"
tal:define="url python:view.tokenToUrl(item['value'])"
tal:omit-tag="python:item['value'] == '--NOVALUE--' or not url"
tal:attributes="href url"

View File

@ -22,6 +22,7 @@
<li tal:repeat="term view/terms">
<a tal:content="term/title"
class="link-tooltip"
target="_new"
tal:define="url python:view.tokenToUrl(term.token)"
tal:omit-tag="python:not url"
tal:attributes="href url"

View File

@ -10,7 +10,7 @@
tal:condition="not:view/readonly"
tal:repeat="action view/actions">
<a class="addnew"
target="_blank"
target="_new"
href="@@add-contact" i18n:translate=""
tal:attributes="href action/url;
class action/klass | string:addnew"

View File

@ -39,6 +39,7 @@
/>
<span class="label"><a tal:content="item/label"
class="link-tooltip"
target="_new"
tal:define="url python:view.tokenToUrl(item['value'])"
tal:omit-tag="python:item['value'] == '--NOVALUE--' or not url"
tal:attributes="href url"

View File

@ -60,7 +60,7 @@ $(document).ready(function() {
ccw.add_contact_preview = function (input, url) {
if (url) {
input.siblings('.label')
.wrapInner('<a href="'+url+'" class="link-tooltip">');
.wrapInner('<a href="'+url+'" target="_new" class="link-tooltip">');
}
};