[Jifty-commit] r4758 - in jifty/trunk: lib/Jifty/Plugin/SQLQueries
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Fri Dec 21 10:11:34 EST 2007
Author: sartak
Date: Fri Dec 21 10:11:25 2007
New Revision: 4758
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Plugin/SQLQueries/View.pm
Log:
r49350 at onn: sartak | 2007-12-21 10:10:52 -0500
SQLQueries: Hide the stack trace behind a more/less JS thinger
Modified: jifty/trunk/lib/Jifty/Plugin/SQLQueries/View.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/SQLQueries/View.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/SQLQueries/View.pm Fri Dec 21 10:11:25 2007
@@ -108,9 +108,28 @@
ol {
li { $_ } for @$bindings;
}
- h5 { "Stack trace:" }
- pre {
- $misc->{SQLQueryPlugin};
+
+ my $more = Jifty->web->serial;
+ div {
+ attr {
+ class => "extra",
+ style => "display: none;",
+ id => $more,
+ };
+ h5 { "Stack trace:" }
+ pre {
+ $misc->{SQLQueryPlugin};
+ }
+ }
+
+ div {
+ a {
+ attr {
+ href => "#",
+ onclick => "Effect.toggle(\$('$more'),'blind'); this.innerHTML = this.innerHTML == 'more...' ? 'less...' : 'more...'; return false;",
+ };
+ "more..."
+ }
}
};
More information about the Jifty-commit
mailing list