View | Details | Raw Unified | Return to bug 7738
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt (-13 / +14 lines)
Lines 5-21 Link Here
5
<script type="text/javascript">
5
<script type="text/javascript">
6
//<![CDATA[
6
//<![CDATA[
7
7
8
	 $(document).ready(function() {
8
$(document).ready(function() {
9
 		$('#subfieldtabs > ul').tabs();
9
    $('#subfieldtabs > ul').tabs();
10
		$("a.displaymore").click(function(){
10
        $("a.displaymore").click(function(){
11
			$("#"+$(this).attr("href").replace("#","")).toggle();
11
        var link = $(this);
12
			if($(this).html() == "display more constraints"){
12
        var constraints = $("#"+$(this).attr("href").replace("#",""));
13
				$(this).html("hide constraints");
13
        constraints.toggle();
14
			} else {
14
            if($(constraints).is(':visible')){
15
				$(this).html("display more constraints");
15
                link.html(_("Hide constraints"));
16
			}
16
            } else {
17
		});
17
                link.html(_("Display more constraints"));
18
	 });
18
            }
19
    });
20
});
19
21
20
/*function displayMoreConstraint(numlayer){
22
/*function displayMoreConstraint(numlayer){
21
    var thisdiv = document.getElementById(numlayer);
23
    var thisdiv = document.getElementById(numlayer);
Lines 102-108 Link Here
102
                	</ol>
104
                	</ol>
103
            </fieldset>
105
            </fieldset>
104
			
106
			
105
            <a class="displaymore" href="#more[% loo.urisubfieldcode %]">display more constraints</a>
107
            <a class="displaymore" href="#more[% loo.urisubfieldcode %]">Display more constraints</a>
106
            <div id="more[% loo.urisubfieldcode %]" style="display:none; clear: both">
108
            <div id="more[% loo.urisubfieldcode %]" style="display:none; clear: both">
107
             <fieldset class="rows" style="float:none;">
109
             <fieldset class="rows" style="float:none;">
108
				<legend>Advanced constraints:</legend>
110
				<legend>Advanced constraints:</legend>
109
- 

Return to bug 7738