open links in a new window
This commit is contained in:
parent
3054557692
commit
d850114042
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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">');
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Reference in New Issue