Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.0.2
-
Fix Version/s: 3.0.3
-
Component/s: controller
-
Labels:None
Description
Currently, agent approval is only supported page 1.
It's because the following code.
$(".approved").click(function() {
var sid = $(this).attr("sid");
$.post(
"${req.getContextPath()}/agent/approve",
{
"ip": sid,
"approve": "true"
},
function() {
showSuccessMsg("Agent is approved");
window.location.reload();
}
);
});
This code only binds to visible element.
When we accessing page 2, this event is not bound so approval and unapproval are not working.
Fix with live() call is necessary.
Fixed in b33562e0ab8b0bbbd2d2759048a04b1087fbfe51