Fossil SCM
Always show the "Apply These Changes" button in the Wysiwyg editor.
Commit
5efd69e2ca688a5555ddf6bae189f2548b872316e80b1157cf90a6825375f9c7
Parent
29d5571898a4884…
1 file changed
+1
-1
+1
-1
| --- src/wiki.c | ||
| +++ src/wiki.c | ||
| @@ -761,11 +761,11 @@ | ||
| 761 | 761 | @ <input type="submit" name="edit-markup" value="Markup Editor" |
| 762 | 762 | @ onclick='return confirm("Switching to markup-mode\nwill erase your WYSIWYG\nedits. Continue?")' /> |
| 763 | 763 | } |
| 764 | 764 | login_insert_csrf_secret(); |
| 765 | 765 | if( havePreview ){ |
| 766 | - if( zBody[0] ){ | |
| 766 | + if( isWysiwyg || zBody[0] ){ | |
| 767 | 767 | @ <input type="submit" name="submit" value="Apply These Changes" /> |
| 768 | 768 | }else{ |
| 769 | 769 | @ <input type="submit" name="submit" value="Delete This Wiki Page" /> |
| 770 | 770 | } |
| 771 | 771 | } |
| 772 | 772 |
| --- src/wiki.c | |
| +++ src/wiki.c | |
| @@ -761,11 +761,11 @@ | |
| 761 | @ <input type="submit" name="edit-markup" value="Markup Editor" |
| 762 | @ onclick='return confirm("Switching to markup-mode\nwill erase your WYSIWYG\nedits. Continue?")' /> |
| 763 | } |
| 764 | login_insert_csrf_secret(); |
| 765 | if( havePreview ){ |
| 766 | if( zBody[0] ){ |
| 767 | @ <input type="submit" name="submit" value="Apply These Changes" /> |
| 768 | }else{ |
| 769 | @ <input type="submit" name="submit" value="Delete This Wiki Page" /> |
| 770 | } |
| 771 | } |
| 772 |
| --- src/wiki.c | |
| +++ src/wiki.c | |
| @@ -761,11 +761,11 @@ | |
| 761 | @ <input type="submit" name="edit-markup" value="Markup Editor" |
| 762 | @ onclick='return confirm("Switching to markup-mode\nwill erase your WYSIWYG\nedits. Continue?")' /> |
| 763 | } |
| 764 | login_insert_csrf_secret(); |
| 765 | if( havePreview ){ |
| 766 | if( isWysiwyg || zBody[0] ){ |
| 767 | @ <input type="submit" name="submit" value="Apply These Changes" /> |
| 768 | }else{ |
| 769 | @ <input type="submit" name="submit" value="Delete This Wiki Page" /> |
| 770 | } |
| 771 | } |
| 772 |