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"
|
||||
class="field"
|
||||
tal:define="widget python:view.widgets.get('broader')">
|
||||
<label tal:content="widget/label" />
|
||||
<br />
|
||||
<label tal:content="widget/label" /> <br />
|
||||
<div tal:content="structure widget/render" />
|
||||
</div>
|
||||
|
||||
<h1 class="documentFirstHeading" tal:content="context/Title" />
|
||||
<button tal:condition="python: 'ajax_load' in request.form.keys()"
|
||||
i18n:translate="">Select</button>
|
||||
<p class="documentDescription"
|
||||
tal:define="widget python:view.widgets.get('equivs')"
|
||||
tal:condition="widget/terms"
|
||||
|
|
|
@ -38,7 +38,7 @@ $(document).ready(function() {
|
|||
<script type="text/javascript" tal:condition="python: 'ajax_load' in request.form.keys()">
|
||||
function preplinks() {
|
||||
$('.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;
|
||||
});
|
||||
}
|
||||
|
|
Reference in New Issue