Sequenzia/app/views/wiki/_edit_buttons.php

3 lines
399 B
PHP
Raw Normal View History

2013-10-27 01:06:58 +02:00
<?= $this->textArea("wiki_page", "body", ['size' => "60x30"]) ?><br>
<?= $this->submitTag("Save", ['name' => "save"]) ?><?= $this->buttonToFunction("Cancel", "history.back()") ?><?= $this->buttonToFunction("Preview", "$('wiki-view').innerHTML = '<em>Loading preview...</em>'; new Ajax.Updater('wiki-view', '/wiki/preview', {parameters: 'body=' + encodeURIComponent($('wiki_page_body').value)})") ?>