Currently, I have implemented a custom function to validate my jqgrid for tracking hours worked per day. Users input the hours in Hour:Minute
format (e.g., 7:30, 8:00). The validation rule is set to return false if the total work time exceeds 20 hours and 1 minute. While the validation function correctly flags errors, Firebug shows an additional error message:
b(":input:visible", a.w)[0] is undefined
, which points to line 379 in the library's version 4.1.2.
I would greatly appreciate any assistance with this issue!
Below are the grid layout and the custom validation code:
WorkSchedule.prototype.init = function() {
// Grid configuration details here...
}
function validHourEntry(value, colname) {
var editSuccess = true;
var errorMsg = "";
// Validation logic implementation...
return [editSuccess, errorMsg];
}
function createWorkScheduleData(rowID) {
// Data creation for each row scenario...
}