[Jifty-commit] r7362 - jifty/trunk/lib/Jifty/Web/Form
Jifty commits
jifty-commit at lists.jifty.org
Thu Aug 13 21:32:56 EDT 2009
Author: sartak
Date: Thu Aug 13 21:32:53 2009
New Revision: 7362
Modified:
jifty/trunk/lib/Jifty/Web/Form/Field.pm
Log:
Stub out Field->preload_javascript
Modified: jifty/trunk/lib/Jifty/Web/Form/Field.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web/Form/Field.pm (original)
+++ jifty/trunk/lib/Jifty/Web/Form/Field.pm Thu Aug 13 21:32:53 2009
@@ -419,7 +419,8 @@
$self->autocomplete_javascript(),
$self->placeholder_javascript(),
$self->key_binding_javascript(),
- $self->focus_javascript()
+ $self->focus_javascript(),
+ $self->preload_javascript(),
)
);
@@ -701,6 +702,22 @@
}
}
+=head2 preload_javascript
+
+Returns the javascript necessary to load regions that have been marked for
+preloading, as plain javascript. The L</javascript> method will look for
+regions marked with preloading and swap them in, instead of loading them
+directly.
+
+=cut
+
+sub preload_javascript {
+ my $self = shift;
+
+ return '';
+}
+
+
=head2 render_hints
Renders any hints for using this input. Defaults to nothing, though
More information about the Jifty-commit
mailing list