Revision: 134
http://acmcontester.svn.sourceforge.net/acmcontester/?rev=134&view=rev
Author: sem62
Date: 2008-05-12 14:39:55 -0700 (Mon, 12 May 2008)
Log Message:
-----------
Chapter model's result at summary is bold now.
Modified Paths:
--------------
WebEditor/template/LectureModel.html
WebEditor/template/global/SummaryPage.js
Modified: WebEditor/template/LectureModel.html
===================================================================
--- WebEditor/template/LectureModel.html 2008-05-12 21:39:13 UTC (rev 133)
+++ WebEditor/template/LectureModel.html 2008-05-12 21:39:55 UTC (rev 134)
@@ -5,7 +5,7 @@
<script type="text/javascript" src="global/APIWrapper.js"></script>
<script type="text/javascript">
function finish(){
- SetValue("cmi.completionStatus", "completed");
+ SetValue("cmi.completion_status", "completed");
Terminate();
}
</script>
Modified: WebEditor/template/global/SummaryPage.js
===================================================================
--- WebEditor/template/global/SummaryPage.js 2008-05-12 21:39:13 UTC (rev 133)
+++ WebEditor/template/global/SummaryPage.js 2008-05-12 21:39:55 UTC (rev 134)
@@ -130,13 +130,21 @@
var td = "<td class='tbl";
td += 1 - (rowNum % 2) + 1;
td += "'>";
+
+ var startFormat = "";
+ var endFormat = "";
+
+ if (modelName == "ChapterModel" || modelName == "OrganizationModel"){
+ startFormat = "<B>";
+ endFormat = "</B>";
+ }
document.write("<TR>" + td + rowNum + "<img src='global/images/" + completionStatus + ".gif'>");
document.write(td + title);
- document.write(td + min);
- document.write(td + max);
- document.write(td + raw);
- document.write(td + percents);
+ document.write(td + startFormat + min + endFormat);
+ document.write(td + startFormat + max + endFormat);
+ document.write(td + startFormat + raw + endFormat);
+ document.write(td + startFormat + percents + endFormat);
}
function openBlock(title, model, id){
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|