Skip to content

Commit

Permalink
Tweaks to use new javascript-printing function etc
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Oct 12, 2002
1 parent 3df4969 commit 5a84640
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
11 changes: 5 additions & 6 deletions mod/forum/post.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -58,10 +58,9 @@
</table> </table>
</FORM> </FORM>


<? if ($usehtmleditor) { ?> <?
<SCRIPT language="JavaScript" event="onload" for="window"> if ($usehtmleditor) {
document.richedit.options = "history=no;source=no"; print_richedit_javascript("theform", "message", "no");
document.richedit.docHtml = theform.message.innerText; }
</SCRIPT> ?>
<? } ?>


11 changes: 5 additions & 6 deletions mod/journal/edit.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@
</P> </P>
</FORM> </FORM>


<? if ($usehtmleditor) { ?> <?
<SCRIPT language="JavaScript" event="onload" for="window"> if ($usehtmleditor) {
document.richedit.options = "history=no;source=no"; print_richedit_javascript("theform", "text", "no");
document.richedit.docHtml = theform.text.innerText; }
</SCRIPT> ?>
<? } ?>


4 changes: 2 additions & 2 deletions mod/journal/lib.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function journal_user_complete($course, $user, $mod, $journal) {
echo "<P><FONT SIZE=1>".get_string("lastedited").": ".userdate($entry->modified)."</FONT></P>"; echo "<P><FONT SIZE=1>".get_string("lastedited").": ".userdate($entry->modified)."</FONT></P>";
} }
if ($entry->text) { if ($entry->text) {
echo text_to_html($entry->text); echo format_text($entry->text, $entry->format);
} }
if ($entry->teacher) { if ($entry->teacher) {
journal_print_feedback($course, $entry); journal_print_feedback($course, $entry);
Expand Down Expand Up @@ -190,7 +190,7 @@ function journal_print_user_entry($course, $user, $entry, $teachers, $ratings) {


echo "\n<TR><TD WIDTH=100% BGCOLOR=\"$THEME->cellcontent\">"; echo "\n<TR><TD WIDTH=100% BGCOLOR=\"$THEME->cellcontent\">";
if ($entry) { if ($entry) {
echo text_to_html($entry->text); echo format_text($entry->text, $entry->format);
} else { } else {
print_string("noentry", "journal"); print_string("noentry", "journal");
} }
Expand Down

0 comments on commit 5a84640

Please sign in to comment.