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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl (-10 / +10 lines)
Lines 27-47 $(document).ready(function() { Link Here
27
    <!-- TMPL_IF NAME="picture" -->
27
    <!-- TMPL_IF NAME="picture" -->
28
    // new YAHOO.widget.Button("delpicture");   // FIXME: formatting mismatch between YUI and normal button
28
    // new YAHOO.widget.Button("delpicture");   // FIXME: formatting mismatch between YUI and normal button
29
	$('#delpicture').click(function(){
29
	$('#delpicture').click(function(){
30
		 return confirm('Are you sure you want to delete this patron image? This cannot be undone.');
30
		 return confirm(_('Are you sure you want to delete this patron image? This cannot be undone.'));
31
	});
31
	});
32
	$('#manage-patron-image').find("input[@value*=Upload]").click(function(){
32
	$('#manage-patron-image').find("input[value*=Upload]").click(function(){
33
        if($("#uploadfile").val() == ""){
33
        if($("#uploadfile").val() == ""){
34
            alert("Please choose a file to upload");
34
            alert(_("Please choose a file to upload"));
35
            return false;
35
            return false;
36
        }
36
        }
37
        return confirm('Are you sure you want to replace the current patron image? This cannot be undone.');
37
        return confirm(_('Are you sure you want to replace the current patron image? This cannot be undone.'));
38
	});<!-- /TMPL_IF -->
38
	});<!-- /TMPL_IF -->
39
	$("#renew_all"      ).click(function(){ $(".checkboxed").checkCheckboxes(":input[@name*=items]"   ); $(".checkboxed").unCheckCheckboxes(":input[@name*=barcodes]"); });
39
	$("#renew_all"      ).click(function(){ $(".checkboxed").checkCheckboxes(":input[name*=items]"   ); $(".checkboxed").unCheckCheckboxes(":input[name*=barcodes]"); });
40
	$("#return_all"     ).click(function(){ $(".checkboxed").checkCheckboxes(":input[@name*=barcodes]"); $(".checkboxed").unCheckCheckboxes(":input[@name*=items]"   ); });
40
	$("#return_all"     ).click(function(){ $(".checkboxed").checkCheckboxes(":input[name*=barcodes]"); $(".checkboxed").unCheckCheckboxes(":input[name*=items]"   ); });
41
	$("#CheckAllitems"  ).click(function(){ $(".checkboxed").checkCheckboxes(":input[@name*=items]"   ); $(".checkboxed").unCheckCheckboxes(":input[@name*=barcodes]"); return false; });
41
	$("#CheckAllitems"  ).click(function(){ $(".checkboxed").checkCheckboxes(":input[name*=items]"   ); $(".checkboxed").unCheckCheckboxes(":input[name*=barcodes]"); return false; });
42
    $("#CheckNoitems"   ).click(function(){ $(".checkboxed").unCheckCheckboxes(":input[@name*=items]"); return false; });
42
    $("#CheckNoitems"   ).click(function(){ $(".checkboxed").unCheckCheckboxes(":input[name*=items]"); return false; });
43
	$("#CheckAllreturns").click(function(){ $(".checkboxed").checkCheckboxes(":input[@name*=barcodes]"); $(".checkboxed").unCheckCheckboxes(":input[@name*=items]"); return false; });
43
	$("#CheckAllreturns").click(function(){ $(".checkboxed").checkCheckboxes(":input[name*=barcodes]"); $(".checkboxed").unCheckCheckboxes(":input[name*=items]"); return false; });
44
    $("#CheckNoreturns" ).click(function(){ $(".checkboxed").unCheckCheckboxes(":input[@name*=barcodes]"); return false; });
44
    $("#CheckNoreturns" ).click(function(){ $(".checkboxed").unCheckCheckboxes(":input[name*=barcodes]"); return false; });
45
45
46
    <!-- TMPL_IF NAME="CAN_user_circulate_override_renewals" -->
46
    <!-- TMPL_IF NAME="CAN_user_circulate_override_renewals" -->
47
    <!-- TMPL_IF NAME="AllowRenewalLimitOverride" -->
47
    <!-- TMPL_IF NAME="AllowRenewalLimitOverride" -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tmpl (-4 / +3 lines)
Lines 108-121 function checkMultiHold() { Link Here
108
    });
108
    });
109
 	$("#requestany").click(function() {
109
 	$("#requestany").click(function() {
110
		if(this.checked){
110
		if(this.checked){
111
		$("input[@name=checkitem]").each(function() {
111
		$("input[name=checkitem]").each(function() {
112
			$(this).attr("checked","");
112
			$(this).attr("checked","");
113
		});
113
		});
114
		}
114
		}
115
	});
115
	});
116
 	$("input[@name=checkitem]").click(function() {
116
 	$("input[name=checkitem]").click(function() {
117
		onechecked = 0;
117
		onechecked = 0;
118
		$("input[@name=checkitem]").each(function() {
118
		$("input[name=checkitem]").each(function() {
119
			if(this.checked){
119
			if(this.checked){
120
				onechecked = 1;
120
				onechecked = 1;
121
			}
121
			}
122
- 

Return to bug 3297