Skip to content

Commit

Permalink
SAK-29157: tab order in certain gradebook UIs can lead to loss of use…
Browse files Browse the repository at this point in the history
…r's data
  • Loading branch information
bjones86 committed Mar 13, 2015
1 parent ca83991 commit ff1d3e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 23 deletions.
16 changes: 3 additions & 13 deletions gradebook/app/ui/src/webapp/assignmentDetails.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,20 @@
actionListener="#{assignmentDetailsBean.processAssignmentIdChange}"
value="#{msgs.assignment_details_previous_assignment}"
title="#{assignmentDetailsBean.previousAssignment.name}"
accesskey="p"
tabindex="4">
accesskey="p">
<f:param name="assignmentId" value="#{assignmentDetailsBean.previousAssignment.id}"/>
</h:commandButton>
<h:commandButton
action="#{assignmentDetailsBean.processCancel}"
immediate="true"
value="#{assignmentDetailsBean.returnString}"
accesskey="l"
tabindex="6"/>
accesskey="l"/>
<h:commandButton
disabled="#{assignmentDetailsBean.last}"
actionListener="#{assignmentDetailsBean.processAssignmentIdChange}"
value="#{msgs.assignment_details_next_assignment}"
title="#{assignmentDetailsBean.nextAssignment.name}"
accesskey="n"
tabindex="5">
accesskey="n">
<f:param name="assignmentId" value="#{assignmentDetailsBean.nextAssignment.id}"/>
</h:commandButton>
</p>
Expand Down Expand Up @@ -92,7 +89,6 @@
<h:commandLink
action="#{assignmentDetailsBean.navigateToEdit}"
accesskey="e"
tabindex="7"
title="#{msgs.assignment_details_edit}">
<h:outputFormat id="editAssignment" value="#{msgs.assignment_details_edit}" />
<f:param name="assignmentId" value="#{assignmentDetailsBean.assignment.id}"/>
Expand All @@ -101,7 +97,6 @@
action="removeAssignment"
rendered="#{!assignmentDetailsBean.assignment.externallyMaintained}"
accesskey="r"
tabindex="8"
title="#{msgs.assignment_details_remove}">
<h:outputText id="removeAssignment" value="#{msgs.assignment_details_remove}"/>
<f:param name="assignmentId" value="#{assignmentDetailsBean.assignment.id}"/>
Expand All @@ -111,7 +106,6 @@
value="#{assignmentDetailsBean.assignment.externalInstructorLink}"
rendered="#{assignmentDetailsBean.assignment.externallyMaintained && not empty assignmentDetailsBean.assignment.externalInstructorLink}"
accesskey="x"
tabindex="9"
title="#{msgs.assignment_details_edit}">
<h:outputFormat value="#{msgs.assignment_details_external_edit}">
<f:param value="#{assignmentDetailsBean.assignment.externalAppName}"/>
Expand Down Expand Up @@ -144,7 +138,6 @@
disabled="#{assignmentDetailsBean.assignment.externallyMaintained || assignmentDetailsBean.allStudentsViewOnly}"
rendered="#{!assignmentDetailsBean.emptyEnrollments}"
accesskey="s"
tabindex="9998"
title="#{msgs.assignment_details_submit}"
onclick="disableButton('buttonDiv1', this)"/>
<h:commandButton
Expand All @@ -155,7 +148,6 @@
rendered="#{!assignmentDetailsBean.emptyEnrollments}"
accesskey="c"
immediate="true"
tabindex="9999"
title="#{msgs.assignment_details_cancel}" onclick="disableButton('buttonDiv1', this)">
<f:param name="breadcrumbPage" value="#{assignmentDetailsBean.breadcrumbPage}"/>
</h:commandButton>
Expand Down Expand Up @@ -307,7 +299,6 @@
actionListener="#{assignmentDetailsBean.processUpdateScores}"
disabled="#{assignmentDetailsBean.assignment.externallyMaintained || assignmentDetailsBean.allStudentsViewOnly}"
rendered="#{!assignmentDetailsBean.emptyEnrollments}"
tabindex="9998"
title="#{msgs.assignment_details_submit}"
onclick="disableButton('buttonDiv2', this)"/>
<h:commandButton
Expand All @@ -317,7 +308,6 @@
immediate="true"
disabled="#{assignmentDetailsBean.assignment.externallyMaintained || assignmentDetailsBean.allStudentsViewOnly}"
rendered="#{!assignmentDetailsBean.emptyEnrollments}"
tabindex="9999"
title="#{msgs.assignment_details_cancel}"
onclick="disableButton('buttonDiv2', this)">
<f:param name="breadcrumbPage" value="#{assignmentDetailsBean.breadcrumbPage}"/>
Expand Down
13 changes: 3 additions & 10 deletions gradebook/app/ui/src/webapp/instructorView.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -43,24 +43,21 @@
actionListener="#{instructorViewBean.processStudentUidChange}"
value="#{msgs.inst_view_prev}"
title="#{instructorViewBean.previousStudent.user.displayName}"
accesskey="p"
tabindex="4" >
accesskey="p">
<f:param name="studentUid" value="#{instructorViewBean.previousStudent.user.userUid}"/>
</h:commandButton>

<h:commandButton
action="#{instructorViewBean.processCancel}"
value="#{instructorViewBean.returnToPageButtonName}"
accesskey="l"
tabindex="6"/>
accesskey="l"/>

<h:commandButton
disabled="#{instructorViewBean.last}"
actionListener="#{instructorViewBean.processStudentUidChange}"
value="#{msgs.inst_view_next}"
title="#{instructorViewBean.nextStudent.user.displayName}"
accesskey="n"
tabindex="5">
accesskey="n">
<f:param name="studentUid" value="#{instructorViewBean.nextStudent.user.userUid}"/>
</h:commandButton>
</div>
Expand Down Expand Up @@ -112,7 +109,6 @@
value="#{msgs.inst_view_save}"
action="#{instructorViewBean.processUpdateScores}"
accesskey="s"
tabindex="9998"
title="#{msgs.inst_view_save}"
disabled="#{instructorViewBean.allItemsViewOnly}"
onclick="disableButton('buttonDiv2', this)"/>
Expand All @@ -122,7 +118,6 @@
action=""
immediate="true"
accesskey="c"
tabindex="9999"
title="#{msgs.inst_view_clear}"
disabled="#{instructorViewBean.allItemsViewOnly}"
onclick="disableButton('buttonDiv2', this)"/>
Expand Down Expand Up @@ -326,7 +321,6 @@
value="#{msgs.inst_view_save}"
action="#{instructorViewBean.processUpdateScores}"
accesskey="s"
tabindex="9998"
title="#{msgs.inst_view_save}"
disabled="#{instructorViewBean.allItemsViewOnly}"
onclick="disableButton('buttonDiv1', this)"/>
Expand All @@ -336,7 +330,6 @@
action=""
immediate="true"
accesskey="c"
tabindex="9999"
title="#{msgs.inst_view_clear}"
disabled="#{instructorViewBean.allItemsViewOnly}"
onclick="disableButton('buttonDiv1', this)"/>
Expand Down

0 comments on commit ff1d3e7

Please sign in to comment.