Bug 7738: "Display more constraints' in subfield configuraiton is not properly translatable
The Javascript toggling the link description was checking for the english link text. This would not work for translated templates. Tested: Apply patch, then translate update and translate install. Text changes as appropriate (with manually inserted translation in .po file) Signed-off-by: mveron <veron@veron.ch> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
parent
956834b978
commit
ec411da3db
|
|
@ -5,17 +5,19 @@
|
|||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#subfieldtabs > ul').tabs();
|
||||
$("a.displaymore").click(function(){
|
||||
$("#"+$(this).attr("href").replace("#","")).toggle();
|
||||
if($(this).html() == "display more constraints"){
|
||||
$(this).html("hide constraints");
|
||||
} else {
|
||||
$(this).html("display more constraints");
|
||||
}
|
||||
});
|
||||
});
|
||||
$(document).ready(function() {
|
||||
$('#subfieldtabs > ul').tabs();
|
||||
$("a.displaymore").click(function(){
|
||||
var link = $(this);
|
||||
var constraints = $("#"+$(this).attr("href").replace("#",""));
|
||||
constraints.toggle();
|
||||
if($(constraints).is(':visible')){
|
||||
link.html(_("Hide constraints"));
|
||||
} else {
|
||||
link.html(_("Display more constraints"));
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
/*function displayMoreConstraint(numlayer){
|
||||
var thisdiv = document.getElementById(numlayer);
|
||||
|
|
@ -102,7 +104,7 @@
|
|||
</ol>
|
||||
</fieldset>
|
||||
|
||||
<a class="displaymore" href="#more[% loo.urisubfieldcode %]">display more constraints</a>
|
||||
<a class="displaymore" href="#more[% loo.urisubfieldcode %]">Display more constraints</a>
|
||||
<div id="more[% loo.urisubfieldcode %]" style="display:none; clear: both">
|
||||
<fieldset class="rows" style="float:none;">
|
||||
<legend>Advanced constraints:</legend>
|
||||
|
|
|
|||
Loading…
Reference in New Issue