add a "select" button in keyword view, when used in overlay
This commit is contained in:
parent
fadfd7593e
commit
057f999000
|
@ -19,12 +19,13 @@
|
||||||
<div id="dmskeywords-navigation-broader-field"
|
<div id="dmskeywords-navigation-broader-field"
|
||||||
class="field"
|
class="field"
|
||||||
tal:define="widget python:view.widgets.get('broader')">
|
tal:define="widget python:view.widgets.get('broader')">
|
||||||
<label tal:content="widget/label" />
|
<label tal:content="widget/label" /> <br />
|
||||||
<br />
|
|
||||||
<div tal:content="structure widget/render" />
|
<div tal:content="structure widget/render" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h1 class="documentFirstHeading" tal:content="context/Title" />
|
<h1 class="documentFirstHeading" tal:content="context/Title" />
|
||||||
|
<button tal:condition="python: 'ajax_load' in request.form.keys()"
|
||||||
|
i18n:translate="">Select</button>
|
||||||
<p class="documentDescription"
|
<p class="documentDescription"
|
||||||
tal:define="widget python:view.widgets.get('equivs')"
|
tal:define="widget python:view.widgets.get('equivs')"
|
||||||
tal:condition="widget/terms"
|
tal:condition="widget/terms"
|
||||||
|
|
|
@ -38,7 +38,7 @@ $(document).ready(function() {
|
||||||
<script type="text/javascript" tal:condition="python: 'ajax_load' in request.form.keys()">
|
<script type="text/javascript" tal:condition="python: 'ajax_load' in request.form.keys()">
|
||||||
function preplinks() {
|
function preplinks() {
|
||||||
$('.overlay-ajax a').click(function() {
|
$('.overlay-ajax a').click(function() {
|
||||||
$('.pb-ajax > div').load($(this).attr('href') + ' #content>*', preplinks);
|
$('.pb-ajax > div').load($(this).attr('href') + '?ajax_load=123 #content>*', preplinks);
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue