Permalink
Browse files

MDL-38745 SCORM: fixed doubling double quotes for 'even' and 'odd'

  • Loading branch information...
scara committed Mar 26, 2013
1 parent d8201d4 commit cc351edaf00daee57a27aa5be0810414d4fcaad6
Showing with 3 additions and 4 deletions.
  1. +3 −4 mod/scorm/datamodels/debug.js.php
@@ -703,18 +703,17 @@ function UpdateLog(s) {
//add an individual log entry
function AppendToLog(s, rc) {
- var sStyle;
+ var sStyle = '';
if (rc != 0) {
- sStyle = 'class="error';
+ sStyle = 'class="error"';
} else if (logRow % 2 != 0) {
sStyle = 'class="even"';
} else {
sStyle = 'class="odd"';
}
- sStyle += '"';
var now = new Date();
now.setTime( now.getTime() );
- s = '<div ' + sStyle + ' id="<?php echo $scorm->version;?>">' + now.toGMTString() + ': ' + s + '<\/div>';
+ s = '<div ' + sStyle + ' id="<?php echo $scorm->version; ?>">' + now.toGMTString() + ': ' + s + '<\/div>';
UpdateLog(s);
// switch colours for a new section of work
if (s.match(/Commit|Loaded|Initialize|Terminate|Finish|Moodle SCORM|Moodle Logging/)) {

0 comments on commit cc351ed

Please sign in to comment.