Correcting some selectors to conform with upgraded jQuery syntax (see Bug 3297).

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
Owen Leonard 2009-07-21 12:36:00 -05:00 committed by Galen Charlton
parent be1ef2b2fa
commit 605be873e0
2 changed files with 13 additions and 13 deletions

View file

@ -27,21 +27,21 @@ $(document).ready(function() {
<!-- TMPL_IF NAME="picture" -->
// 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.');
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(){
$('#manage-patron-image').find("input[value*=Upload]").click(function(){
if($("#uploadfile").val() == ""){
alert("Please choose a file to upload");
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.');
return confirm(_('Are you sure you want to replace the current patron image? This cannot be undone.'));
});<!-- /TMPL_IF -->
$("#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; });
<!-- TMPL_IF NAME="CAN_user_circulate_override_renewals" -->
<!-- TMPL_IF NAME="AllowRenewalLimitOverride" -->

View file

@ -108,14 +108,14 @@ function checkMultiHold() {
});
$("#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;
}