[Jifty-commit] r6727 - in jifty/trunk/lib/Jifty/Plugin: SkeletonApp
Jifty commits
jifty-commit at lists.jifty.org
Thu Apr 2 16:32:51 EDT 2009
Author: alexmv
Date: Thu Apr 2 16:32:51 2009
New Revision: 6727
Modified:
jifty/trunk/lib/Jifty/Plugin/SkeletonApp/View.pm
jifty/trunk/lib/Jifty/Plugin/ViewDeclarePage/Page.pm
Log:
Don't reset keybindings when we display its id, or we never have any to display. :/
Modified: jifty/trunk/lib/Jifty/Plugin/SkeletonApp/View.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/SkeletonApp/View.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/SkeletonApp/View.pm Thu Apr 2 16:32:51 2009
@@ -67,8 +67,7 @@
};
private template 'keybindings' => sub {
- div { id is "keybindings";
- outs_raw('<script type="text/javascript">Jifty.KeyBindings.reset()</script>') };
+ div { id is "keybindings" };
};
#template 'index.html' => page { { title is _('Welcome to your new Jifty application') } img { src is "/static/images/pony.jpg", alt is _( 'You said you wanted a pony. (Source %1)', 'http://hdl.loc.gov/loc.pnp/cph.3c13461'); }; };
Modified: jifty/trunk/lib/Jifty/Plugin/ViewDeclarePage/Page.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/ViewDeclarePage/Page.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/ViewDeclarePage/Page.pm Thu Apr 2 16:32:51 2009
@@ -591,9 +591,7 @@
with( id => "jifty-wait-message", style => "display: none" ),
div { _('Loading...') };
- div { id is "keybindings";
- script { outs_raw('Jifty.KeyBindings.reset()') }
- };
+ div { id is "keybindings" };
# This is required for jifty server push
if ( Jifty->config->framework('PubSub')->{'Enable'} && Jifty::Subs->list )
More information about the Jifty-commit
mailing list