diff --git a/codepot/src/codepot/views/issue_show.php b/codepot/src/codepot/views/issue_show.php index f1f31721..6ea004b9 100644 --- a/codepot/src/codepot/views/issue_show.php +++ b/codepot/src/codepot/views/issue_show.php @@ -148,6 +148,12 @@ $(function () { } ); + + $("#issue_change_comment_preview_button").button().click( + function () { + render_wiki_comment_preview ($("#issue_change_comment").val()); + } + ); }); @@ -424,6 +430,7 @@ $this->load->view (
lang->line('Comment'), 'issue_change_comment')?> + lang->line('Preview')?> 'issue_change_comment', @@ -434,6 +441,8 @@ $this->load->view ( ); print form_textarea ($xdata); ?> + +
@@ -453,14 +462,14 @@ $this->load->view ( +id}/"; + $creole_attachment_base = site_url() . "/wiki/attachment0/{$project->id}/"; +?> + diff --git a/codepot/src/css/issue.css b/codepot/src/css/issue.css index 18a7e5d4..ea547aa4 100644 --- a/codepot/src/css/issue.css +++ b/codepot/src/css/issue.css @@ -104,11 +104,18 @@ } #issue_show_mainarea_change_form textarea { - display: block; - padding: 1px; - font-size: inherit; + -moz-box-shadow: 0 2px 4px #bbb inset; + -webkit-box-shadow: 0 2px 4px #BBB inset; + box-shadow: 0 2px 4px #BBB inset; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + border-radius: 3px; + + border: 0 none; font-family: consolas, "Andale Mono", monospace; + width: 100%; + font-size: 0.9em; } #issue_show_mainarea_changes { @@ -168,6 +175,32 @@ padding-bottom: 0.3em; } +#issue_change_form { + font-size: 1em; +} + +/* all these elements inside the form requires a lot of refinement. + * many of these are duplicates of elemenents in common.css */ +#issue_change_form .form_input_preview { + background-color: #FFFFF0; + font-size: 0.9em; + padding: 0.2em 0.2em 0.2em 0.2em; + margin-bottom: 0.5em; +} + +#issue_change_form .form_input_preview table { + font-size: 1em; +} + +#issue_change_form .form_input_preview pre { + background-color: #F8F8FA; + padding: 0.2em 0.2em 0.2em 0.2em; +} + +#issue_change_comment_preview_button { + font-size: 0.8em; +} + /*--------------------------------------------- * issue edit *---------------------------------------------*/