From 1efaec679a00c2de304959948228e87a918d84c8 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Tue, 21 Mar 2006 23:31:34 +0000 Subject: [PATCH] more changes for better xhtml compatibility --- lib/WebGUI/Asset.pm | 8 ++++---- lib/WebGUI/Asset/File.pm | 2 +- lib/WebGUI/AssetClipboard.pm | 2 +- lib/WebGUI/AssetTrash.pm | 2 +- lib/WebGUI/Form/Captcha.pm | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/WebGUI/Asset.pm b/lib/WebGUI/Asset.pm index 6122f55ae..c2e6abcac 100644 --- a/lib/WebGUI/Asset.pm +++ b/lib/WebGUI/Asset.pm @@ -1075,21 +1075,21 @@ sub manageAssets {
'.$i18n->get(1083).''; foreach my $link (@{$self->getAssetAdderLinks("proceed=manageAssets","assetContainers")}) { - $output .= ''.$link->{label}.' + $output .= '

'.$link->{label}.'

'.$link->{label}.' '; $output .= $self->session->icon->edit("func=edit;proceed=manageAssets",$link->{asset}->get("url")) if ($link->{isPrototype}); $output .= '
'; } $output .= '
'; foreach my $link (@{$self->getAssetAdderLinks("proceed=manageAssets")}) { - $output .= ''.$link->{label}.' + $output .= '

'.$link->{label}.'

'.$link->{label}.' '; $output .= $self->session->icon->edit("func=edit;proceed=manageAssets",$link->{asset}->get("url")) if ($link->{isPrototype}); $output .= '
'; } $output .= '
'; foreach my $link (@{$self->getAssetAdderLinks("proceed=manageAssets","utilityAssets")}) { - $output .= ''.$link->{label}.' + $output .= '

'.$link->{label}.'

'.$link->{label}.' '; $output .= $self->session->icon->edit("func=edit;proceed=manageAssets",$link->{asset}->get("url")) if ($link->{isPrototype}); $output .= '
'; @@ -1127,7 +1127,7 @@ sub manageAssets { my $hasPackages = 0; my $packages; foreach my $asset (@{$self->getPackageList}) { - $packages .= ''.$asset->getName.' + $packages .= '

'.$asset->getName.'

getId).'">'.$asset->getTitle.' ' .$self->session->icon->edit("func=edit;proceed=manageAssets",$asset->get("url")) .'
'; diff --git a/lib/WebGUI/Asset/File.pm b/lib/WebGUI/Asset/File.pm index 4c403fd1c..9d980d1a9 100644 --- a/lib/WebGUI/Asset/File.pm +++ b/lib/WebGUI/Asset/File.pm @@ -137,7 +137,7 @@ sub getEditForm { $tabform->getTab("properties")->readOnly( -label=>$i18n->get('current file'), -hoverHelp=>$i18n->get('current file description', 'Asset_File'), - -value=>''.$self->get( '.$self->get("filename").'' + -value=>'

'.$self->get( '.$self->get("filename").'

' ); } diff --git a/lib/WebGUI/AssetClipboard.pm b/lib/WebGUI/AssetClipboard.pm index 524efe669..80059407b 100644 --- a/lib/WebGUI/AssetClipboard.pm +++ b/lib/WebGUI/AssetClipboard.pm @@ -341,7 +341,7 @@ $self->session->style->setLink($self->session->config->get("extrasURL").'/assetM value=>$child->getId }) ."','getUrl("func=manageAssets")."\">".$title - ."','getIcon(1)."\" style=\"border-style:none;\" alt=\"".$child->getName."\" /> ".$child->getName + ."','

getIcon(1)."\" style=\"border-style:none;vertical-align:middle;\" alt=\"".$child->getName."\" />

".$child->getName ."','".$self->session->datetime->epochToHuman($child->get("revisionDate")) ."','".formatBytes($child->get("assetSize"))."');\n"; $output .= "assetManager.AddLineSortData('','".$title."','".$child->getName diff --git a/lib/WebGUI/AssetTrash.pm b/lib/WebGUI/AssetTrash.pm index 125401aaa..df0cc52e4 100644 --- a/lib/WebGUI/AssetTrash.pm +++ b/lib/WebGUI/AssetTrash.pm @@ -221,7 +221,7 @@ sub www_manageTrash { value=>$child->getId }) ."','getUrl("func=manageAssets")."\">".$title - ."','getIcon(1)."\" style=\"border-style:none;\" alt=\"".$child->getName."\" /> ".$child->getName + ."','

getIcon(1)."\" style=\"vertical-align:middle;border-style:none;\" alt=\"".$child->getName."\" />

".$child->getName ."','".$self->session->datetime->epochToHuman($child->get("revisionDate")) ."','".formatBytes($child->get("assetSize"))."');\n"; $output .= "assetManager.AddLineSortData('','".$title."','".$child->getName diff --git a/lib/WebGUI/Form/Captcha.pm b/lib/WebGUI/Form/Captcha.pm index 0c080800e..c8e458e17 100644 --- a/lib/WebGUI/Form/Captcha.pm +++ b/lib/WebGUI/Form/Captcha.pm @@ -97,7 +97,7 @@ sub toHtml { $self->set("size", 6); $self->set("maxlength", 6); $self->session->scratch->set("captcha_".$self->get("name"), $challenge); - $self->set("subtext", 'captcha'.$self->get("subtext")); + $self->set("subtext", '

captcha

'.$self->get("subtext")); return $self->SUPER::toHtml; }