Add preview functionality -- actually change preview message this time

This commit is contained in:
Isabeau Kisler 2017-07-02 14:15:20 -07:00
parent 8eee12bd6b
commit 070afff19b
2 changed files with 2 additions and 2 deletions

View File

@ -5236,7 +5236,7 @@ register_module([
$page_tags = $_POST['tags'];
// Insert the "view" part of the page we're editing
$content .= "<h4>To continue editing or save, scroll down...</h4>" . parse_page_source($pagetext);
$content .= "<p class='preview-message'><strong>This is only a preview, so your edits haven't been saved! Scroll down to continue editing.</strong></p>" . parse_page_source($pagetext);
}

View File

@ -167,7 +167,7 @@ register_module([
$page_tags = $_POST['tags'];
// Insert the "view" part of the page we're editing
$content .= "<h4>To continue editing or save, scroll down...</h4>" . parse_page_source($pagetext);
$content .= "<p class='preview-message'><strong>This is only a preview, so your edits haven't been saved! Scroll down to continue editing.</strong></p>" . parse_page_source($pagetext);
}