fixed some map stuff
This commit is contained in:
parent
e46fa3c036
commit
a8c0ea875c
2 changed files with 3 additions and 2 deletions
|
@ -2,7 +2,7 @@ $( document ).ready(function() {
|
|||
function bindMapOpen() {
|
||||
// $('#modal_map').data('abv-entry',$(this).data('abv-entry'));
|
||||
// $('#modal_map')[0].showModal();
|
||||
let url = `../dict/map-info/${$(this).data('abv-entry')}`;
|
||||
let url = `./dict/map-info/${$(this).data('abv-entry')}`;
|
||||
|
||||
fetch(url)
|
||||
.then(res => res.json())
|
||||
|
|
|
@ -352,7 +352,8 @@ declare %rest:path("{$lang}/dict")
|
|||
where $i > ($p - 1) * $page:items and $i <= $p * $page:items
|
||||
let $html := doc(`abaevdict_{$lang}/html/{$doc/@xml:id}.html`)
|
||||
return if (doc('abaevdict_index/mentioned_en.xml')/
|
||||
lang-index/lang/word/entry[@id=string($doc/@xml:id)]) then
|
||||
lang-index/lang[@id != 'os' and
|
||||
not(starts-with(@id,'os-'))]/word/entry[@id=string($doc/@xml:id)]) then
|
||||
$html transform with {insert nodes (<br/>,
|
||||
<a class="abv-map" data-abv-entry="{$doc/@xml:id}">
|
||||
<img src="/static/map.png"></img></a>) as last
|
||||
|
|
Loading…
Add table
Reference in a new issue