Commit 4e5a7d84 authored by Ted Trask's avatar Ted Trask

Fixed log selection by changing attr to prop and not capitalizing submit

Change from attr to prop necessary due to jquery upgrade
parent dbd93321
......@@ -49,16 +49,16 @@ end
array.push(this.id);
});
if (this.checked == false) {
$('.chktbl:checked').attr('checked', false);
$('.chktbl:checked').prop('checked', false);
$("#loglist").find('tr:not(#chktbl)').css("background-color","#FFF");
deselectdata = array.join("%0D%0A");
} else {
$('.chktbl:not(:checked)').attr('checked', true);
$('.chktbl:not(:checked)').prop('checked', true);
$("#loglist").find('tr:not(#chktbl)').css("background-color","#FC9A01");
selectdata = array.join("%0D%0A");
}
$.getJSON(
'<%= html.html_escape(page_info.script .. page_info.prefix .. page_info.controller .. "/updateselected") %>?viewtype=json&Submit=true&select='+selectdata+'&deselect='+deselectdata,
'<%= html.html_escape(page_info.script .. page_info.prefix .. page_info.controller .. "/updateselected") %>?viewtype=json&submit=true&select='+selectdata+'&deselect='+deselectdata,
function(data) {}
);
}
......@@ -71,12 +71,12 @@ end
selectdata = this.id;
} else {
// If clearing, clear the Head too
$("#chkHead").attr("checked", false);
$("#chkHead").prop("checked", false);
$(this).closest('tr').css("background-color","#ffffff");
deselectdata = this.id;
}
$.getJSON(
'<%= html.html_escape(page_info.script .. page_info.prefix .. page_info.controller .. "/updateselected") %>?viewtype=json&Submit=true&select='+selectdata+'&deselect='+deselectdata,
'<%= html.html_escape(page_info.script .. page_info.prefix .. page_info.controller .. "/updateselected") %>?viewtype=json&submit=true&select='+selectdata+'&deselect='+deselectdata,
function(data) {}
);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment