Skip to content

Commit

Permalink
POD nitpicks for AutoReference
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://svn.bestpractical.com/svn/jifty.org/jifty/trunk@6424 e84bef0a-9b06-0410-84ba-c4c9edb13aeb
  • Loading branch information
alexmv committed Feb 25, 2009
1 parent b4596eb commit 5758aff
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
5 changes: 4 additions & 1 deletion lib/Jifty/Plugin/AutoReference.pm
Expand Up @@ -29,7 +29,10 @@ and then this to your models:
=head1 DESCRIPTION
Provides a special autocompletion widget for reference columns. See L<Jifty::Plugin::AutoReference::Widget>.
Provides a special autocompletion widget for reference columns. See
L<Jifty::Plugin::AutoReference::Widget>. Use this plugin if a
C<select> box for a table reference is impractical, but you need
similar semantics.
=head1 METHODS
Expand Down
19 changes: 14 additions & 5 deletions lib/Jifty/Plugin/AutoReference/Widget.pm
Expand Up @@ -20,9 +20,13 @@ Jifty::Plugin::AutoReference::Widget - an autocomplete widget for references
=head1 DESCRIPTION
Provides a special autocomplete widget that can be useful when there are too many items for a Select box to be practical.
Provides a special autocomplete widget that can be useful when there
are too many items for a Select box to be practical.
B<WARNING:> As of this writing, it should be noted that this widget does not degrade gracefully. If you need a widget that operates properly even when JavaScript is unavailable, this widget won't do that job at this time.
B<WARNING:> As of this writing, it should be noted that this widget
does not degrade gracefully. If you need a widget that operates
properly even when JavaScript is unavailable, this widget won't do
that job at this time.
=head1 METHODS
Expand Down Expand Up @@ -86,7 +90,9 @@ sub _switch_current_value_temporarily(&$) {

=head2 render_widget
Overrides the widget renderer to draw both a hidden field that stores the actual referenced ID and a text field that is autocompleted using the records brief description.
Overrides the widget renderer to draw both a hidden field that stores
the actual referenced ID and a text field that is autocompleted using
the records brief description.
=cut

Expand Down Expand Up @@ -117,7 +123,8 @@ sub render_widget {

=head2 render_value
Overrides the value renderer to show the brief description of the referenced record.
Overrides the value renderer to show the brief description of the
referenced record.
=cut

Expand All @@ -133,7 +140,9 @@ sub render_value {

=head2 autocomplete_javascript
Overrides the JavaScript autocompletion widget to use C<Jifty.Plugin.AutoReference> instead of the regular C<Jifty.Autocompleter>.
Overrides the JavaScript autocompletion widget to use
C<Jifty.Plugin.AutoReference> instead of the regular
C<Jifty.Autocompleter>.
=cut

Expand Down

0 comments on commit 5758aff

Please sign in to comment.