function uncheckbox(form, field) {
var price = new Number(form.elements['price' + field].value);
var tmpprice = "";
- var errmsg = MSG_INVALIDPRICE;
+ var errmsg = __("ERROR: Price is not a valid number, please check the price and try again!");
if (isNaN(price)) {
alert(errmsg);
for(var i=0; i<form.elements['price' + field].value.length; ++i) {
var result = eval ( xmlhttp.responseText );
if (result == '1') {
- return MSG_BUDGET_PARENT_ALLOCATION;
+ return "- " + __("Fund amount exceeds parent allocation") + "\n";
} else if (result == '2') {
- return MSG_BUDGET_PERIOD_ALLOCATION;
+ return "- " + __("Fund amount exceeds period allocation") + "\n";
} else {
return false;
}
var result = eval ( xmlhttp.responseText );
if (result == '1') {
- return MSG_PARENT_BENEATH_BUDGET;
+ return "- " + __("New budget-parent is beneath budget") + "\n";
// } else if (result == '2') {
// return "- New budget-parent has insufficent funds\n";
// } else {
}
function showAllColumns(){
- $("#selections").checkCheckboxes();
+ $("#selections").find("input:checkbox").each(function () {
+ $(this).prop("checked", true);
+ });
$("#selections span").addClass("selected");
$("#plan td:nth-child(2),#plan tr th:nth-child(2)").nextAll().show();
$("#hideall").prop("checked", false).parent().removeClass("selected");
}
function hideAllColumns(){
var allCols = $("#plan th").length;
- $("#selections").unCheckCheckboxes();
+ $("#selections").find("input:checkbox").each(function () {
+ $(this).prop("checked", false);
+ });
$("#selections span").removeClass("selected");
$("#plan td:nth-child(2),#plan th:nth-child(2)").nextUntil("th:nth-child("+(allCols-1)+"),td:nth-child("+(allCols-1)+")").hide(); // hide all but the last two columns
$("#hideall").prop("checked", true).parent().addClass("selected");