vec/manj for zgledi
This commit is contained in:
parent
4981f265b8
commit
7572265318
26
view.xsl
26
view.xsl
|
@ -13,7 +13,8 @@
|
||||||
var less_txt = "▲ manj";
|
var less_txt = "▲ manj";
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$(".morelessbutton").click(function() {
|
$(".morelessbutton").click(function() {
|
||||||
var examples_div = $(this).parent().parent().find('.hideable').first();
|
var parent_with_hideable = $(this).parent().parent().parent();
|
||||||
|
var examples_div = parent_with_hideable.find('.hideable').first();
|
||||||
if(examples_div.is(":hidden")) {
|
if(examples_div.is(":hidden")) {
|
||||||
$(this).text(less_txt);
|
$(this).text(less_txt);
|
||||||
} else {
|
} else {
|
||||||
|
@ -139,8 +140,10 @@
|
||||||
<a class="morelessbutton" href="javascript:void(null)"></a>
|
<a class="morelessbutton" href="javascript:void(null)"></a>
|
||||||
</div>
|
</div>
|
||||||
<xsl:apply-templates select="pomenska_shema | definicija1 | definicija2"/>
|
<xsl:apply-templates select="pomenska_shema | definicija1 | definicija2"/>
|
||||||
<div class="hideable" style="display: none; ">
|
<div> <!-- needed since button goes to third parent... -->
|
||||||
<xsl:apply-templates select="skladenjske_skupine"/>
|
<div class="hideable" style="display: none;">
|
||||||
|
<xsl:apply-templates select="skladenjske_skupine"/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
@ -244,11 +247,18 @@
|
||||||
|
|
||||||
<xsl:template match="kolokacija | r_kolokacija">
|
<xsl:template match="kolokacija | r_kolokacija">
|
||||||
<xsl:text xml:space="preserve"> </xsl:text>
|
<xsl:text xml:space="preserve"> </xsl:text>
|
||||||
<span class="xslt-kolokacija-head">
|
<div>
|
||||||
<xsl:apply-templates select="ks | p | i"/>
|
<span class="xslt-kolokacija-head">
|
||||||
</span>
|
<xsl:apply-templates select="ks | p | i"/>
|
||||||
<xsl:text xml:space="preserve"> </xsl:text>
|
<div class="xslt-morelessbutton-div">
|
||||||
<xsl:apply-templates select="zgledi"/>
|
<a class="morelessbutton" href="javascript:void(null)"></a>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
<xsl:text xml:space="preserve"> </xsl:text>
|
||||||
|
<div class="hideable" style="display: none;">
|
||||||
|
<xsl:apply-templates select="zgledi"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="kolokacije//ks">
|
<xsl:template match="kolokacije//ks">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user