Skip to content
Browse files

move post_form() into scope of newpost()

  • Loading branch information...
1 parent e24d3f1 commit cdf3fb6c54b0afc0cfcbb745358e01afd04fab21 Austin Seipp committed Jun 13, 2011
Showing with 9 additions and 10 deletions.
  1. +9 −10 src/admin.opa
View
19 src/admin.opa
@@ -73,17 +73,16 @@ Admin = {{
do MathJax.reload(#preview_output)
SHJS.highlight()
- post_form() =
- <div id=#inputarea>
- <textarea rows=20 cols=80 id=#post_entry /><br/>
- <button type="button" onclick={_ -> update_preview()}>Preview</button><br />
- <button type="button" >Publish</button>
- <h3><a href="/admin">Go back to admin page</a></h3>
- </div>
- <br/>
- <p>Preview:</p><br/><div id=#preview_output></div>
-
newpost() =
+ post_form() =
+ <div id=#inputarea>
+ <textarea rows=20 cols=80 id=#post_entry /><br/>
+ <button type="button" onclick={_ -> update_preview()}>Preview</button><br />
+ <button type="button" >Publish</button>
+ <h3><a href="/admin">Go back to admin page</a></h3>
+ </div>
+ <br/>
+ <p>Preview:</p><br/><div id=#preview_output></div>
Layout.transform_content(post_form())
/* Logout */

0 comments on commit cdf3fb6

Please sign in to comment.
Something went wrong with that request. Please try again.