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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/messaging-preference-form.inc (-14 / +14 lines)
Lines 1-20 Link Here
1
[% USE Koha %]
1
[% USE Koha %]
2
<!-- snippet for form to set borrower and patron category messaging preferences -->
2
<!-- snippet for form to set borrower and patron category messaging preferences -->
3
<script type="text/javascript">//<![CDATA[
3
<script type="text/javascript">//<![CDATA[
4
	$(document).ready(function(){
4
$(document).ready(function(){
5
		$(".none").click(function(){
5
    $(".none").click(function(){
6
			if($(this).prop("checked")){
6
        if($(this).prop("checked")){
7
				var rowid = $(this).attr("id");
7
            var rowid = $(this).attr("id");
8
				newid = Number(rowid.replace("none","")) 
8
            newid = Number(rowid.replace("none",""))
9
          $("#sms"+newid).prop("checked", false);
9
            $("#sms"+newid).prop("checked", false);
10
          $("#email"+newid).prop("checked", false);
10
            $("#email"+newid).prop("checked", false);
11
          $("#phone"+newid).prop("checked", false);
11
            $("#phone"+newid).prop("checked", false);
12
          $("#digest"+newid).prop("checked", false);
12
            $("#digest"+newid).prop("checked", false);
13
          $("#rss"+newid).prop("checked", false);
13
            $("#rss"+newid).prop("checked", false);
14
			}
14
        }
15
		});
15
    });
16
        $("#info_digests").tooltip();
16
    $("#info_digests").tooltip();
17
	});
17
});
18
//]]>
18
//]]>
19
</script>
19
</script>
20
20
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-20 / +19 lines)
Lines 149-174 function checkMultiHold() { Link Here
149
    $("input.warning").click(function() {
149
    $("input.warning").click(function() {
150
        return confirm( _("None of these items can normally be put on hold for this patron.") + "\n\n" + _("Place hold?") );
150
        return confirm( _("None of these items can normally be put on hold for this patron.") + "\n\n" + _("Place hold?") );
151
    });
151
    });
152
 	$("#requestany").click(function() {
152
    $("#requestany").click(function() {
153
		if(this.checked){
153
        if(this.checked){
154
		$("input[name=checkitem]").each(function() {
154
            $("input[name=checkitem]").each(function() {
155
            $(this).prop("checked", false);
155
                $(this).prop("checked", false);
156
		});
156
            });
157
		}
157
        }
158
	});
158
    });
159
 	$("input[name=checkitem]").click(function() {
159
    $("input[name=checkitem]").click(function() {
160
		onechecked = 0;
160
        onechecked = 0;
161
		$("input[name=checkitem]").each(function() {
161
        $("input[name=checkitem]").each(function() {
162
			if(this.checked){
162
            if(this.checked){
163
				onechecked = 1;
163
                onechecked = 1;
164
			}
164
            }
165
		});
165
        });
166
		if(onechecked == 1){
166
        if(onechecked == 1){
167
            $("#requestany").prop("checked", false);
167
            $("#requestany").prop("checked", false);
168
		} else {
168
        } else {
169
			$("#requestany").prop("checked",true);
169
            $("#requestany").prop("checked",true);
170
		}
170
        }
171
	});
171
    });
172
172
173
    $(".clear-date").on("click",function(e){
173
    $(".clear-date").on("click",function(e){
174
        e.preventDefault();
174
        e.preventDefault();
175
- 

Return to bug 16238