From b783631915267eaab654e10bb976c852e5a3acec Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Wed, 9 Sep 2009 23:46:31 +0200 Subject: [PATCH] Correcting some selectors to conform with upgraded jQuery syntax (see Bug 3297). Signed-off-by: Galen Charlton --- .../prog/en/modules/members/moremember.tmpl | 33 ++++++++++--------- .../prog/en/modules/reserve/request.tmpl | 6 ++-- 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl index f295ca6905..382b8fd702 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl @@ -24,23 +24,24 @@ $(document).ready(function() { sortList: [[0,0]], headers: { 1: { sorter: 'articles' },6: { sorter: false }} }); - $('#manage-patron-image').find("input[@value*=Delete]").click(function(){ - return confirm('Are you sure you want to delete this patron image? This cannot be undone.'); - }); - $('#manage-patron-image').find("input[@value*=Upload]").click(function(){ - if($("#uploadfile").val() == ""){ - alert("Please choose a file to upload"); - return false; - } else { - return confirm('Are you sure you want to replace the current patron image? This cannot be undone.'); - } + + // new YAHOO.widget.Button("delpicture"); // FIXME: formatting mismatch between YUI and normal button + $('#delpicture').click(function(){ + return confirm(_('Are you sure you want to delete this patron image? This cannot be undone.')); + }); + $('#manage-patron-image').find("input[value*=Upload]").click(function(){ + if($("#uploadfile").val() == ""){ + alert(_("Please choose a file to upload")); + return false; + } + return confirm(_('Are you sure you want to replace the current patron image? This cannot be undone.')); }); - $("#renew_all").click(function(){ $(".checkboxed").checkCheckboxes(":input[@name*=items]"); $(".checkboxed").unCheckCheckboxes(":input[@name*=barcodes]"); }); - $("#return_all").click(function(){ $(".checkboxed").checkCheckboxes(":input[@name*=barcodes]"); $(".checkboxed").unCheckCheckboxes(":input[@name*=items]"); }); - $("#CheckAllitems").click(function(){ $(".checkboxed").checkCheckboxes(":input[@name*=items]"); $(".checkboxed").unCheckCheckboxes(":input[@name*=barcodes]"); return false; }); - $("#CheckNoitems").click(function(){ $(".checkboxed").unCheckCheckboxes(":input[@name*=items]"); return false; }); - $("#CheckAllreturns").click(function(){ $(".checkboxed").checkCheckboxes(":input[@name*=barcodes]"); $(".checkboxed").unCheckCheckboxes(":input[@name*=items]"); return false; }); - $("#CheckNoreturns").click(function(){ $(".checkboxed").unCheckCheckboxes(":input[@name*=barcodes]"); return false; }); + $("#renew_all" ).click(function(){ $(".checkboxed").checkCheckboxes(":input[name*=items]" ); $(".checkboxed").unCheckCheckboxes(":input[name*=barcodes]"); }); + $("#return_all" ).click(function(){ $(".checkboxed").checkCheckboxes(":input[name*=barcodes]"); $(".checkboxed").unCheckCheckboxes(":input[name*=items]" ); }); + $("#CheckAllitems" ).click(function(){ $(".checkboxed").checkCheckboxes(":input[name*=items]" ); $(".checkboxed").unCheckCheckboxes(":input[name*=barcodes]"); return false; }); + $("#CheckNoitems" ).click(function(){ $(".checkboxed").unCheckCheckboxes(":input[name*=items]"); return false; }); + $("#CheckAllreturns").click(function(){ $(".checkboxed").checkCheckboxes(":input[name*=barcodes]"); $(".checkboxed").unCheckCheckboxes(":input[name*=items]"); return false; }); + $("#CheckNoreturns" ).click(function(){ $(".checkboxed").unCheckCheckboxes(":input[name*=barcodes]"); return false; }); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tmpl index e1e8297e14..7c1c4a7456 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tmpl @@ -52,14 +52,14 @@ if (alreadyreserved > "0"){ $(document).ready(function() { $("#requestany").click(function() { if(this.checked){ - $("input[@name=checkitem]").each(function() { + $("input[name=checkitem]").each(function() { $(this).attr("checked",""); }); } }); - $("input[@name=checkitem]").click(function() { + $("input[name=checkitem]").click(function() { onechecked = 0; - $("input[@name=checkitem]").each(function() { + $("input[name=checkitem]").each(function() { if(this.checked){ onechecked = 1; } -- 2.39.5