Permalink
Browse files

Trim comment to remove extra space before using in Javascript statements

  • Loading branch information...
1 parent 7e78d96 commit e1ace7dd20704be8d5a834030bcb843d3bae0258 moodler committed Jul 12, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/assignment/lib.php
View
@@ -488,7 +488,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(strip_tags($submission->comment), 15)."\";\n";
+ '").innerHTML="'.shorten_text(trim(strip_tags($submission->comment)), 15)."\";\n";
}
if (empty($SESSION->flextable['mod-assignment-submissions']->collapse['timemodified']) &&
$submission->timemodified) {

0 comments on commit e1ace7d

Please sign in to comment.