backgroundJobProgressTimer = setInterval("updateJobProgress()", 500);
},
error: function(xml, textStatus) {
- alert('Failed to submit form: ' + textStatus);
+ alert(_('Failed to submit form: ') + textStatus);
}
});
if(document.location = '/cgi-bin/koha/acqui/basketgroup.pl?op=closeandprint&basketgroupid=' + bg ){
setTimeout("window.location.reload();",3000);
}else{
- alert('Error downloading the file');
+ alert(_('Error downloading the file'));
}
}
var filename = $(this).val();
if ( ! /(?:\.csv|\.sql|\.ods|\.xml)$/.test(filename)) {
$(this).css("background-color","yellow");
- alert('Please select an ods or xml file');
+ alert(_('Please select an ods or xml file'));
$(this).val("");
$(this).css("background-color","white");
}
return false;
}
obj.css("background-color","yellow");
- alert('Please select an spreadsheet (csv, ods, xml) or sql file');
+ alert(_('Please select an spreadsheet (csv, ods, xml) or sql file'));
obj.val("");
obj.css("background-color","white");
return false;
}
function CheckForm(f) {
if (f.uploadedfileid.value == '') {
- alert('Please upload a file first.');
+ alert(_('Please upload a file first.'));
} else {
$("#fileuploadstatus").hide();
$("#fileuploadform").slideUp();
});
function CheckForm(f) {
if ($("#fileToUpload").value == '') {
- alert('Please upload a file first.');
+ alert(_('Please upload a file first.'));
} else {
return submitBackgroundJob(f);
}
var shelfnumber = $("#addto").find("option:selected").attr("id").replace("s","");
<!-- TMPL_IF NAME="loggedinusername" -->if (vShelfAdd()) {
Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?selectedshelf='+shelfnumber+'&' + vShelfAdd());
- }<!-- TMPL_ELSE --> alert('You must be logged in to create or add to Lists'); <!-- /TMPL_IF -->
+ }<!-- TMPL_ELSE --> alert(_('You must be logged in to create or add to Lists')); <!-- /TMPL_IF -->
return false;
} else if($("#addto").find("option:selected").attr("value") == "newlist"){
<!-- TMPL_IF NAME="loggedinusername" -->if (vShelfAdd()) {
Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?newshelf=1&' + vShelfAdd());
- }<!-- TMPL_ELSE --> alert('You must be logged in to create or add to Lists'); <!-- /TMPL_IF -->
+ }<!-- TMPL_ELSE --> alert(_('You must be logged in to create or add to Lists')); <!-- /TMPL_IF -->
return false;
}
if($("#addto").find("option:selected").attr("value") == "addtocart"){
} else if($("#addto").find("option:selected").attr("value") == "newlist"){
<!-- TMPL_IF NAME="loggedinusername" -->if (vShelfAdd()) {
Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?newshelf=1&' + vShelfAdd());
- }<!-- TMPL_ELSE --> alert('You must be logged in to create or add to Lists'); <!-- /TMPL_IF -->
+ }<!-- TMPL_ELSE --> alert(_('You must be logged in to create or add to Lists')); <!-- /TMPL_IF -->
return false;
} else if($("#addto").find("option:selected").attr("value") == "morelists"){
<!-- TMPL_IF NAME="loggedinusername" -->if (vShelfAdd()) {
Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?' + vShelfAdd());
- }<!-- TMPL_ELSE --> alert('You must be logged in to create or add to Lists'); <!-- /TMPL_IF -->
+ }<!-- TMPL_ELSE --> alert(_('You must be logged in to create or add to Lists')); <!-- /TMPL_IF -->
return false;
}
if($("#addto").find("option:selected").attr("value") == "addtocart" || $("#addto").attr("class") == "addtocart"){