Skip to content

Commit

Permalink
Item10673: fix for more tolerance of size variable
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/MultiTopicSavePlugin@11536 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
MartinCleaver authored and MartinCleaver committed Apr 23, 2011
1 parent fb7255d commit b238b91
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/Foswiki/Plugins/MultiTopicSavePlugin.pm
Expand Up @@ -416,10 +416,12 @@ sub _MULTITOPICSAVEINPUT {
elsif ( $type eq 'textarea' ) {
$result = "<textarea class='foswikiTextarea' ";
my ($cols, $rows) = ( 40, 5 );
if ( $size =~ m/(\d+)[xX](\d+)/ ) {
($cols, $rows) = ( $1, $2 );
}
$result .= "cols='$cols' rows='$rows' ";
if (defined $size ) {
if ( $size =~ m/(\d+)[xX](\d+)/ ) {
($cols, $rows) = ( $1, $2 );
}
$result .= "cols='$cols' rows='$rows' ";
}
$result .= "name='multitopicsavefield{$topicFQN}{$field}'>";
$result .= "$value";
$result .= "</textarea>"
Expand Down

0 comments on commit b238b91

Please sign in to comment.