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

(-)a/koha-tmpl/intranet-tmpl/prog/css/staff-global.css (-1 / +5 lines)
Lines 2427-2438 a.disabled { Link Here
2427
}
2427
}
2428
2428
2429
.close:hover {
2429
.close:hover {
2430
    color: #538200;
2430
    color: inherit;
2431
    filter: inherit;
2431
    filter: inherit;
2432
    font-size: inherit;
2432
    font-size: inherit;
2433
    opacity: inherit;
2433
    opacity: inherit;
2434
}
2434
}
2435
2435
2436
a.close:hover {
2437
    color: #538200;
2438
}
2439
2436
/* Redefine a new style for Bootstrap's class "close" since we use that already */
2440
/* Redefine a new style for Bootstrap's class "close" since we use that already */
2437
/* Use <a class="closebtn" href="#">&times;</a> */
2441
/* Use <a class="closebtn" href="#">&times;</a> */
2438
.alert .closebtn{position:relative;top:-2px;right:-21px;line-height:20px;}
2442
.alert .closebtn{position:relative;top:-2px;right:-21px;line-height:20px;}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt (-8 / +15 lines)
Lines 12-18 Link Here
12
        // Enforce Superlibrarian Privilege Mutual Exclusivity
12
        // Enforce Superlibrarian Privilege Mutual Exclusivity
13
        if($('input[id="flag-0"]:checked').length){
13
        if($('input[id="flag-0"]:checked').length){
14
            if ($('input[name="flag"]:checked').length > 1){
14
            if ($('input[name="flag"]:checked').length > 1){
15
                alert('Inconsistency Detected!\n\nThe superlibrarian privilege is mutually exclusive of other privileges, as it includes them all.\n\nThis patron\'s privileges will now be reset to include only superlibrarian.');
15
                alert(_("Inconsistency detected! The superlibrarian privilege is mutually exclusive of other privileges, as it includes them all. This patron's privileges will now be reset to include only superlibrarian."));
16
            }
16
            }
17
17
18
            $('input[name="flag"]').each(function() {
18
            $('input[name="flag"]').each(function() {
Lines 39-48 Link Here
39
            }
39
            }
40
        });
40
        });
41
41
42
        $(".flag").on("change",function(){
43
            if( $(this).hasClass("parent") ){
44
                toggleChildren(this);
45
            } else {
46
                toggleParent(this);
47
            }
48
        });
49
42
    });
50
    });
43
</script>
51
44
<!-- manage checking/unchecking parent permissions -->
52
    // manage checking/unchecking parent permissions
45
<script type="text/javascript">
46
    var originalChildStates = {}; /* keep track of subpermission checkbox values
53
    var originalChildStates = {}; /* keep track of subpermission checkbox values
47
                                     so that user can recover from accidentally
54
                                     so that user can recover from accidentally
48
                                     toggling a parent/module permission */
55
                                     toggling a parent/module permission */
Lines 127-135 Link Here
127
        <li>
134
        <li>
128
        [% END %]
135
        [% END %]
129
			[% IF ( loo.checked ) %]
136
			[% IF ( loo.checked ) %]
130
			   <input type="checkbox" id="flag-[% loo.bit %]" name="flag" value="[% loo.flag %]" checked="checked" onclick="toggleChildren(this)" />
137
                <input type="checkbox" class="flag parent" id="flag-[% loo.bit %]" name="flag" value="[% loo.flag %]" checked="checked" />
131
			[% ELSE %]
138
			[% ELSE %]
132
				<input type="checkbox" id="flag-[% loo.bit %]" name="flag" value="[% loo.flag %]"  onclick="toggleChildren(this)" />
139
                <input type="checkbox" class="flag parent" id="flag-[% loo.bit %]" name="flag" value="[% loo.flag %]" />
133
			[% END %]
140
			[% END %]
134
                <label class="permissioncode" for="flag-[% loo.bit %]">[% loo.flag %]</label>
141
                <label class="permissioncode" for="flag-[% loo.bit %]">[% loo.flag %]</label>
135
                <span class="permissiondesc">[% PROCESS main_permissions name=loo.flag %]</span>
142
                <span class="permissiondesc">[% PROCESS main_permissions name=loo.flag %]</span>
Lines 138-146 Link Here
138
                    [% FOREACH sub_perm_loo IN loo.sub_perm_loop %]
145
                    [% FOREACH sub_perm_loo IN loo.sub_perm_loop %]
139
                        <li>
146
                        <li>
140
			            [% IF ( sub_perm_loo.checked ) %]
147
			            [% IF ( sub_perm_loo.checked ) %]
141
			                <input type="checkbox" id="[% sub_perm_loo.id %]" name="flag" value="[% sub_perm_loo.perm %]" checked="checked" onclick="toggleParent(this)" />
148
                            <input type="checkbox" class="flag child" id="[% sub_perm_loo.id %]" name="flag" value="[% sub_perm_loo.perm %]" checked="checked" />
142
			            [% ELSE %]
149
			            [% ELSE %]
143
			                <input type="checkbox" id="[% sub_perm_loo.id %]" name="flag" value="[% sub_perm_loo.perm %]" onclick="toggleParent(this)" />
150
                            <input type="checkbox" class="flag child" id="[% sub_perm_loo.id %]" name="flag" value="[% sub_perm_loo.perm %]" />
144
			            [% END %]
151
			            [% END %]
145
                    <label class="permissioncode" for="[% sub_perm_loo.id %]">[% sub_perm_loo.code %]</label>
152
                    <label class="permissioncode" for="[% sub_perm_loo.id %]">[% sub_perm_loo.code %]</label>
146
                             <span class="permissiondesc">[% PROCESS sub_permissions name=sub_perm_loo.code %]</span>
153
                             <span class="permissiondesc">[% PROCESS sub_permissions name=sub_perm_loo.code %]</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt (-3 / +15 lines)
Lines 97-102 $(document).ready(function() { Link Here
97
        e.preventDefault();
97
        e.preventDefault();
98
        filterByFirstLetterSurname($(this).text());
98
        filterByFirstLetterSurname($(this).text());
99
    });
99
    });
100
    $("#select_all").on("click",function(e){
101
        e.preventDefault();
102
        $(".selection").prop("checked", true);
103
    });
104
    $("#clear_all").on("click",function(e){
105
        e.preventDefault();
106
        $(".selection").prop("checked", false);
107
    });
108
    $("#clear_search").on("click",function(e){
109
        e.preventDefault();
110
        clearFilters(true);
111
    });
100
});
112
});
101
113
102
var dtMemberResults;
114
var dtMemberResults;
Lines 354-362 function filterByFirstLetterSurname(letter) { Link Here
354
            [% IF CAN_user_tools_manage_patron_lists %]
366
            [% IF CAN_user_tools_manage_patron_lists %]
355
              <div id="searchheader">
367
              <div id="searchheader">
356
                  <div>
368
                  <div>
357
                      <a href="javascript:void(0)" onclick="$('.selection').prop('checked', true)">Select all</a>
369
                      <a href="#" id="select_all"><i class="fa fa-check"></i> Select all</a>
358
                      |
370
                      |
359
                      <a href="javascript:void(0)" onclick="$('.selection').prop('checked', false)">Clear all</a>
371
                      <a href="#" id="clear_all"><i class="fa fa-remove"></i> Clear all</a>
360
                      |
372
                      |
361
                      <span>
373
                      <span>
362
                          <label for="add_to_patron_list">Add selected patrons to:</label>
374
                          <label for="add_to_patron_list">Add selected patrons to:</label>
Lines 515-521 function filterByFirstLetterSurname(letter) { Link Here
515
          </ol>
527
          </ol>
516
          <fieldset class="action">
528
          <fieldset class="action">
517
            <input type="submit" value="Search" />
529
            <input type="submit" value="Search" />
518
            <input type="button" value="Clear" onclick="clearFilters(true);" />
530
            <input type="button" value="Clear" id="clear_search" />
519
          </fieldset>
531
          </fieldset>
520
        </fieldset>
532
        </fieldset>
521
      </form>
533
      </form>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-brief.tt (-3 / +3 lines)
Lines 44-51 Link Here
44
    [% END %]
44
    [% END %]
45
	[% IF ( fax ) %]<li><span class="label">Fax: </span>[% fax %]</li>[% END %]
45
	[% IF ( fax ) %]<li><span class="label">Fax: </span>[% fax %]</li>[% END %]
46
    [% UNLESS ( I ) %]
46
    [% UNLESS ( I ) %]
47
        [% IF ( email ) %]<li><span class="label">Primary email:</span><a href="mailto:[% email %]">[% email %]</a></li>[% END %]
47
        [% IF ( email ) %]<li class="email"><span class="label">Primary email:</span><a href="mailto:[% email %]">[% email %]</a></li>[% END %]
48
        [% IF ( emailpro ) %]<li><span class="label">Secondary email: </span><a href="mailto:[% emailpro %]">[% emailpro %]</a></li>[% END %]
48
        [% IF ( emailpro ) %]<li class="email"><span class="label">Secondary email: </span><a href="mailto:[% emailpro %]">[% emailpro %]</a></li>[% END %]
49
    [% END %]
49
    [% END %]
50
    <li><span class="label">Initials: </span>[% initials %]</li>
50
    <li><span class="label">Initials: </span>[% initials %]</li>
51
    <li><span class="label">Date of birth:</span>[% dateofbirth | $KohaDates %]</li>
51
    <li><span class="label">Date of birth:</span>[% dateofbirth | $KohaDates %]</li>
Lines 86-92 Link Here
86
	</ol>
86
	</ol>
87
	</div>
87
	</div>
88
	</div>
88
	</div>
89
	<fieldset class="action"><input type="button" class="submit" value="Close window" onclick="window.close();" /></fieldset>
89
    <fieldset class="action"><input type="button" class="close" value="Close window" /></fieldset>
90
	</div>
90
	</div>
91
	</div>
91
	</div>
92
</div>
92
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-1 / +4 lines)
Lines 90-95 $(document).ready(function() { Link Here
90
        hour: 23,
90
        hour: 23,
91
        minute: 59
91
        minute: 59
92
    });
92
    });
93
    $("#view_restrictions").on("click",function(){
94
        $('#debarments-tab-link').click();
95
    });
93
 });
96
 });
94
function uncheck_sibling(me){
97
function uncheck_sibling(me){
95
nodename=me.getAttribute("name");
98
nodename=me.getAttribute("name");
Lines 189-195 function validate1(date) { Link Here
189
               [% IF ( debarredcomment ) %]
192
               [% IF ( debarredcomment ) %]
190
                   with the explanation: <i>[% debarredcomment | html_line_break %]</i>
193
                   with the explanation: <i>[% debarredcomment | html_line_break %]</i>
191
               [% END %]
194
               [% END %]
192
                <a href="#reldebarments" onclick="$('#debarments-tab-link').click()">View restrictions</a>
195
                <a href="#reldebarments" id="view_restrictions">View restrictions</a>
193
            </li>
196
            </li>
194
        [% END %]
197
        [% END %]
195
        [% IF ( gonenoaddress ) %]<li class="blocker">Patron's address is in doubt.</li>[% END %]
198
        [% IF ( gonenoaddress ) %]<li class="blocker">Patron's address is in doubt.</li>[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt (-2 / +3 lines)
Lines 80-86 Link Here
80
                    <input type="hidden" name="op" value="resend_notice" />
80
                    <input type="hidden" name="op" value="resend_notice" />
81
                    <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
81
                    <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
82
                    <input type="hidden" name="message_id" value="[% QUEUED_MESSAGE.message_id %]" />
82
                    <input type="hidden" name="message_id" value="[% QUEUED_MESSAGE.message_id %]" />
83
                    <a href="#" onclick="$(this).closest('form').submit();return false;" title="Attempt to resend the notice">Resend</a>
83
                    <fieldset class="action">
84
                        <button class="btn btn-mini" type="submit">Resend</button>
85
                    </fieldset>
84
                </form>
86
                </form>
85
            </div>
87
            </div>
86
            [% END %]
88
            [% END %]
87
- 

Return to bug 16494