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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt (-5 / +5 lines)
Lines 118-124 fieldset.rows label.viewlog { Link Here
118
                                <li>
118
                                <li>
119
                                    <label for="modules">Modules:</label>
119
                                    <label for="modules">Modules:</label>
120
                                    <div class="log_modules">
120
                                    <div class="log_modules">
121
                                        [% UNLESS modules %]
121
                                        [% IF modules.size == 0 %]
122
                                            <label for="moduleALL" class="viewlog"><input type="checkbox" id="moduleALL" name="modules" value="" checked="checked"> All</label>
122
                                            <label for="moduleALL" class="viewlog"><input type="checkbox" id="moduleALL" name="modules" value="" checked="checked"> All</label>
123
                                        [% ELSE %]
123
                                        [% ELSE %]
124
                                            <label for="moduleALL" class="viewlog"><input type="checkbox" id="moduleALL" name="modules" value=""> All</label>
124
                                            <label for="moduleALL" class="viewlog"><input type="checkbox" id="moduleALL" name="modules" value=""> All</label>
Lines 138-144 fieldset.rows label.viewlog { Link Here
138
                            <li>
138
                            <li>
139
                                <label for="actions">Actions:</label>
139
                                <label for="actions">Actions:</label>
140
                                <div class="log_modules">
140
                                <div class="log_modules">
141
                                    [% UNLESS actions %]
141
                                    [% IF actions.length == 0 %]
142
                                        <label for="actionALL" class="viewlog"><input type="checkbox" id="actionALL" name="actions" value="" checked="checked"> All</label>
142
                                        <label for="actionALL" class="viewlog"><input type="checkbox" id="actionALL" name="actions" value="" checked="checked"> All</label>
143
                                    [% ELSE %]
143
                                    [% ELSE %]
144
                                        <label for="actionALL" class="viewlog"><input type="checkbox" id="actionALL" name="actions" value=""> All</label>
144
                                        <label for="actionALL" class="viewlog"><input type="checkbox" id="actionALL" name="actions" value=""> All</label>
Lines 168-174 fieldset.rows label.viewlog { Link Here
168
							</li>
168
							</li>
169
                            <li>
169
                            <li>
170
                                <label for="interfaces">Interface:</label>
170
                                <label for="interfaces">Interface:</label>
171
                                [% UNLESS interfaces %]
171
                                [% IF interfaces.size == 0 %]
172
                                    <label for="interfaceALL" class="viewlog"><input type="checkbox" id="interfaceALL" name="interfaces" value="" checked="checked"> All</label>
172
                                    <label for="interfaceALL" class="viewlog"><input type="checkbox" id="interfaceALL" name="interfaces" value="" checked="checked"> All</label>
173
                                [% ELSE %]
173
                                [% ELSE %]
174
                                    <label for="interfaceALL" class="viewlog"><input type="checkbox" id="interfaceALL" name="interfaces" value=""> All</label>
174
                                    <label for="interfaceALL" class="viewlog"><input type="checkbox" id="interfaceALL" name="interfaces" value=""> All</label>
Lines 176-184 fieldset.rows label.viewlog { Link Here
176
176
177
                                [% FOREACH interf IN [ 'INTRANET' 'OPAC' 'SIP' 'COMMANDLINE' ] %]
177
                                [% FOREACH interf IN [ 'INTRANET' 'OPAC' 'SIP' 'COMMANDLINE' ] %]
178
                                    [% IF interfaces.grep(interf).size %]
178
                                    [% IF interfaces.grep(interf).size %]
179
                                        <label for="interface[% interf | html %]" class="viewlog"><input type="checkbox" id="interface[% interf | html %]" name="interfaces" value="" checked="checked"> [% PROCESS translate_log_interface log_interface=interf %]</label>
179
                                        <label for="interface[% interf | html %]" class="viewlog"><input type="checkbox" id="interface[% interf | html %]" name="interfaces" value="[% interf | html %]" checked="checked"> [% PROCESS translate_log_interface log_interface=interf %]</label>
180
                                    [% ELSE %]
180
                                    [% ELSE %]
181
                                        <label for="interface[% interf | html %]" class="viewlog"><input type="checkbox" id="interface[% interf | html %]" name="interfaces" value=""> [% PROCESS translate_log_interface log_interface=interf %]</label>
181
                                        <label for="interface[% interf | html %]" class="viewlog"><input type="checkbox" id="interface[% interf | html %]" name="interfaces" value="[% interf | html %]"> [% PROCESS translate_log_interface log_interface=interf %]</label>
182
                                    [% END %]
182
                                    [% END %]
183
                                [% END %]
183
                                [% END %]
184
                            </li>
184
                            </li>
(-)a/koha-tmpl/intranet-tmpl/prog/js/viewlog.js (-5 / +10 lines)
Lines 11-24 function untickAll(section){ Link Here
11
}
11
}
12
12
13
$(document).ready(function(){
13
$(document).ready(function(){
14
    tickAll('modules');
14
15
    if ( $('input[name="modules"]:checked').length == 0 ) {
16
        tickAll('modules');
17
    }
15
    $("#moduleALL").change(function(){
18
    $("#moduleALL").change(function(){
16
        if ( this.checked == true ){
19
        if ( this.checked == true ){
17
            tickAll('modules');
20
            tickAll('modules');
18
        } else {
21
        } else {
19
            untickAll('modules');
22
            untickAll('modules');
20
        }
23
        }
21
22
    });
24
    });
23
    $("input[name='modules']").change(function(){
25
    $("input[name='modules']").change(function(){
24
        if ( $("input[name='modules']:checked").length == $("input[name='modules']").length - 1 ){
26
        if ( $("input[name='modules']:checked").length == $("input[name='modules']").length - 1 ){
Lines 26-32 $(document).ready(function(){ Link Here
26
        }
28
        }
27
    });
29
    });
28
30
29
    tickAll('actions');
31
    if ( $('input[name="actions"]:checked').length == 0 ) {
32
        tickAll('actions');
33
    }
30
    $("#actionALL").change(function(){
34
    $("#actionALL").change(function(){
31
        if ( this.checked == true ){
35
        if ( this.checked == true ){
32
            tickAll('actions');
36
            tickAll('actions');
Lines 41-47 $(document).ready(function(){ Link Here
41
        }
45
        }
42
    });
46
    });
43
47
44
    tickAll('interfaces');
48
    if ( $('input[name="interfaces"]:checked').length == 0 ) {
49
        tickAll('interfaces');
50
    }
45
    $("#interfaceALL").change(function(){
51
    $("#interfaceALL").change(function(){
46
        if ( this.checked == true ){
52
        if ( this.checked == true ){
47
            tickAll('interfaces');
53
            tickAll('interfaces');
48
- 

Return to bug 24982