Index: lams_gradebook/web/includes/jsp/jqGridIncludes.jsp =================================================================== diff -u -re6b3b4b473ebb151c10733808c40d4276b4f81ab -r051ab022e4087566f23069b2299f804d791c8e49 --- lams_gradebook/web/includes/jsp/jqGridIncludes.jsp (.../jqGridIncludes.jsp) (revision e6b3b4b473ebb151c10733808c40d4276b4f81ab) +++ lams_gradebook/web/includes/jsp/jqGridIncludes.jsp (.../jqGridIncludes.jsp) (revision 051ab022e4087566f23069b2299f804d791c8e49) @@ -186,4 +186,20 @@ }; + <%-- Based on jqgrid internal functions --%> + function displayCellErrorMessage(table, iRow, iCol, errorLabel, errorMessage, buttonText ) { + setTimeout(function () { + try { + var frozenRows = table.grid.fbRows, + tr = table.rows[iRow]; + tr = frozenRows != null && frozenRows[0].cells.length > iCol ? frozenRows[tr.rowIndex] : tr; + var td = tr != null && tr.cells != null ? $(tr.cells[iCol]) : $(), + rect = td[0].getBoundingClientRect(); + $.jgrid.info_dialog.call(table, errorLabel, errorMessage, buttonText, {left:rect.left-200, top:rect.top}); + } catch (e) { + alert(errorMessage); + } + }, 50); + } +