[Jifty-commit] r1927 - in wifty/trunk: share/web/templates
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sat Sep 2 23:32:10 EDT 2006
Author: nelhage
Date: Sat Sep 2 23:32:10 2006
New Revision: 1927
Modified:
wifty/trunk/lib/Wifty/Form/Field/WikiPage.pm
wifty/trunk/share/web/templates/edit
Log:
Moving the '30 rows' into WikiPage.pm, so it affects admin mode as well.
Modified: wifty/trunk/lib/Wifty/Form/Field/WikiPage.pm
==============================================================================
--- wifty/trunk/lib/Wifty/Form/Field/WikiPage.pm (original)
+++ wifty/trunk/lib/Wifty/Form/Field/WikiPage.pm Sat Sep 2 23:32:10 2006
@@ -71,6 +71,14 @@
}
+=head2 rows
+
+C<WikiPage> forms have 30 rows in their textarea by default
+
+=cut
+
+sub rows { 30 };
+
=head1 SEE ALSO
L<Text::Markdown>, L<Jifty::Web::Form::Field::Textarea>
Modified: wifty/trunk/share/web/templates/edit
==============================================================================
--- wifty/trunk/share/web/templates/edit (original)
+++ wifty/trunk/share/web/templates/edit Sat Sep 2 23:32:10 2006
@@ -18,7 +18,7 @@
copy the source of this page. </p>
% }
<% Jifty->web->form->next_page( url => '/view/'.$page->name) %>
-<% $viewer->form_field('content', rows => 30 )%>
+<% $viewer->form_field('content')%>
</div>
% if($can_edit) {
<div class="line">
More information about the Jifty-commit
mailing list