]> lifelog.hopto.org Git - LifeLog.git/commitdiff
Changed Document btn name.
authorMetabox <redacted>
Sat, 3 Aug 2019 20:23:36 +0000 (06:23 +1000)
committerMetabox <redacted>
Sat, 3 Aug 2019 20:23:36 +0000 (06:23 +1000)
htdocs/cgi-bin/main.cgi
htdocs/cgi-bin/wsrc/main.js

index 9582fa6af0b5aae5e05736164bf8ff463ae42ee3..80e0b7d5ec2a69c9610a2556497a0f6251482e29 100755 (executable)
@@ -508,7 +508,7 @@ while ( my @row = $st->fetchrow_array() ) {
       }
 
       if($rtf > 0){
-         $log .= qq(<hr><button id="btnRTF" onClick="return loadRTF(true, $id);">Show Document</button>);
+         $log .= qq(<hr><button id="btnRTF" onClick="return loadRTF(true, $id);">`RTF</button>);
       }
 
       $tbl .= qq(<tr class="r$tfId">
index c5460a9fab9853cfa39fec3de7e21bc69cb55c72..2c0fa1390634d40c9477b6b7e6f83650ef505a75 100644 (file)
@@ -258,6 +258,7 @@ function decodeToHTMLText(txt) {
 }
 
 function decodeToText(txt) {
+    txt = txt.replace(/`RTF$/, "");
     txt = txt.replace(/<br\s*[\/]?>/gi, "\n");
     return txt;
 }