Mercurial > hg > MPIWGWeb
changeset 221:e8431f86ac70
anker fuer direkte spruenge in thesaurus
author | dwinter |
---|---|
date | Thu, 24 Oct 2013 15:32:51 +0200 |
parents | 81e9c8252747 |
children | 5a24611ce4cf |
files | js/mpiwg.js zpt/project/project_index_html.zpt |
diffstat | 2 files changed, 7 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/js/mpiwg.js Thu Oct 24 14:59:22 2013 +0200 +++ b/js/mpiwg.js Thu Oct 24 15:32:51 2013 +0200 @@ -99,7 +99,7 @@ // oeffne im folgenden die tags die zur kategorie "open" gehoeren var open = getURLParameter("open"); - var head = $('#'+open).parent() + var head = $('#'+open).parent().parent() var img = $(head).find('img'); @@ -112,11 +112,11 @@ } //tag auf level 2 ebne - if ($(head).hasClass('fold_head2')){ + if ($(head).hasClass('foldable2')){ //oeffne erst den darueberliegenden level - var par = $(head).parent().parent().parent(); - var img_level1 = $(head).parent().parent().parent().find('li.fold_head img'); + var par = $(head).parent().parent(); + var img_level1 = $(head).parent().parent().find('li.fold_head img'); var level1 = par.find('.fold_body'); level1.slideToggle('fast');
--- a/zpt/project/project_index_html.zpt Thu Oct 24 14:59:22 2013 +0200 +++ b/zpt/project/project_index_html.zpt Thu Oct 24 15:32:51 2013 +0200 @@ -195,11 +195,12 @@ <!-- sideblock --> <div class="sideblock" tal:define="tags python:here.thesaurus.getTagsAsHash(here.getId())" tal:condition="tags"> <h2>Tags</h2> - <div class="item"> + <div class="item" tal:define="anc python:here.thesaurus.thes_quote('/en/research/projects/'+here.getId())"> + <tal:x repeat="key python:tags.keys()"> <tal:y repeat="tag python:tags[key]"> - - <a tal:content="python:here.thesaurus.formatTag(tag)" tal:attributes="href python:'thesaurus/show_en.html?dep='+key+'&open='+here.thesaurus.thes_quote(tag) ">tag</a></tal:y> + - <a tal:content="python:here.thesaurus.formatTag(tag)" tal:attributes="href python:'thesaurus/show_en.html?dep='+key+'&open='+here.thesaurus.thes_quote(tag)+'#'+anc">tag</a></tal:y> </tal:x> </div>