The setDirty function is the event handler for the onChange, onKeypress, and onClick events of elements in the Activity.htm, ActivityType.htm, Group.htm, Location.htm, and Person.htm files (see PT Admin Application Localized HTML Files (en_us)). The following code fragments show how these events are associated with the setDirty function. This code is from the Group.htm file, but all the *.htm files contain similar HTML code.
<td><select name="GradeScaleId1" size="1" DATAFLD="GradeScaleId1" style="WIDTH: 100%" tabIndex="4" accessKey="1" onChange="setDirty()" LID="sel36"></select></td>
<td><input name="Name" style="WIDTH: 100%" tabIndex="1" accessKey="n" DATAFLD="Name" maxlength="50" onKeypress="setDirty()" LID="inp34" L_NAME="Name" required="true" validator="isWord">
<td width="1" valign="top"><input id="chkMeetingDays0" name="chkMeetingDays0" type="checkbox" tabIndex="10" accessKey="t" onClick="setDirty()" LID="inp44"></td>
The following code fragment shows the setDirty function in the IsDirty.js file:
function setDirty() {
isDirty = true;
}