Skip to content

Commit

Permalink
Strp tabs from shortened comments
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Apr 20, 2005
1 parent 0ae9822 commit 86365d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/assignment/lib.php
Expand Up @@ -397,7 +397,7 @@ function update_main_listing($submission) {
}
if (empty($SESSION->flextable['mod-assignment-submissions']->collapse['comment'])) {
echo 'opener.document.getElementById("com'.$submission->userid.
'").innerHTML="'.shorten_text($submission->comment, 15)."\";\n";
'").innerHTML="'.shorten_text(strip_tags($submission->comment), 15)."\";\n";
}
if (empty($SESSION->flextable['mod-assignment-submissions']->collapse['timemodified']) &&
$submission->timemodified) {
Expand Down Expand Up @@ -708,7 +708,7 @@ function display_submissions() {
$grade = '<div id="g'.$auser->id.'"></div>';
}

$comment = '<div id="com'.$auser->id.'">'.shorten_text($auser->comment, 15).'</div>';
$comment = '<div id="com'.$auser->id.'">'.shorten_text(strip_tags($auser->comment), 15).'</div>';

} else {
$studentmodified = '<div id="ts'.$auser->id.'">&nbsp;</div>';
Expand Down
4 changes: 4 additions & 0 deletions mod/assignment/styles.php
Expand Up @@ -34,6 +34,10 @@
margin-right: 4px;
}

.mod-assignment .files {
whitespace:nowrap;
}

#mod-assignment-submissions .generaltable .r1 {
background-color: #FFFFFF;
}
Expand Down

0 comments on commit 86365d2

Please sign in to comment.