Index: app/ui/src/webapp/assignmentDetails.jsp
===================================================================
--- app/ui/src/webapp/assignmentDetails.jsp (revision 314120)
+++ app/ui/src/webapp/assignmentDetails.jsp (working copy)
@@ -339,11 +339,11 @@
check_change = function(){
changed = false;
$("table#gbForm\\:gradingTable :text").each(function(i){
- if(org_vals[i] != this.value){changed=true;}
+ if(org_vals[i] !== this.value){changed=true;}
});
if(changed){return confirm("");}
return true;
-}
+};
Index: app/ui/src/webapp/courseGradeDetails.jsp
===================================================================
--- app/ui/src/webapp/courseGradeDetails.jsp (revision 314120)
+++ app/ui/src/webapp/courseGradeDetails.jsp (working copy)
@@ -239,12 +239,33 @@
'top': -120,
'right':-100
}).toggle();
- })
+ });
$('#exportPrefsValsClose').click(function(e){
e.preventDefault();
$(this).parent('div.highlightPanel').hide();
- })
});
+
+ org_vals = new Array($("table#gbForm\\:gradingTable :text").length);
+ $("table#gbForm\\:gradingTable :text").each(function(i)
+ {
+ org_vals[i] = this.value;
+ });
+ $(".shorttext .listNav input,select").click(check_change);
+ });
+
+ check_change = function()
+ {
+ changed = false;
+ $("table#gbForm\\:gradingTable :text").each(function(i)
+ {
+ if(org_vals[i] !== this.value){changed=true;}
+ });
+ if(changed)
+ {
+ return confirm("");
+ }
+ return true;
+ };