summaryrefslogtreecommitdiffstats
path: root/app/dispatcherror-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'app/dispatcherror-html.lsp')
-rw-r--r--app/dispatcherror-html.lsp27
1 files changed, 24 insertions, 3 deletions
diff --git a/app/dispatcherror-html.lsp b/app/dispatcherror-html.lsp
index fcfa3e7..66cfd5d 100644
--- a/app/dispatcherror-html.lsp
+++ b/app/dispatcherror-html.lsp
@@ -3,7 +3,28 @@
io.write(html.cfe_unpack(view))
--]] ?>
-<h1>Alpine Configuration Framework</h1>
-<p class="error">Dispatch Error</p>
-'<?= view.controller ?>' controller does not have a '<?= view.action ?>' action.
+<style type="text/css">
+ p.hiddendetail {
+ display: none;
+ }
+ p.error a{
+ display: block;
+ font-weight: normal;
+ font-size: 75%;
+ }
+</style>
+<script type="text/javascript" src="/js/jquery-latest.js"></script>
+<script type="text/javascript">
+ var clickIt = function(){
+ $("p.hiddendetail").removeClass("hiddendetail").show("slow");
+ $(this).fadeOut("slow");
+ };
+ $(document).ready(function(){
+ $("p.errordetail").append('<a href="javascript:;">Show Detail</a>').find("a").click(clickIt);
+ $("p.errordetail").addClass("error");
+ });
+</script>
+<h1>Alpine Configuration Framework</h1>
+<p class="errordetail">Dispatch error occured</p>
+<p class="hiddendetail">'<?= view.controller ?>' does not have a '<?= view.action ?>' action.</p>