From b9122d292c990943b8bdcb98933d9294057938b6 Mon Sep 17 00:00:00 2001 From: Wouter van Oijen Date: Fri, 19 May 2006 23:09:42 +0000 Subject: [PATCH] Fix: Link to page in Webgui Page Tree not working in IE Some more XHTML fixes --- lib/WebGUI/Operation/FormHelpers.pm | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/lib/WebGUI/Operation/FormHelpers.pm b/lib/WebGUI/Operation/FormHelpers.pm index d32c0fd7e..b613ac82c 100644 --- a/lib/WebGUI/Operation/FormHelpers.pm +++ b/lib/WebGUI/Operation/FormHelpers.pm @@ -111,7 +111,7 @@ sub www_richEditPageTree { my $session = shift; $session->http->setCacheControl("none"); my $i18n = WebGUI::International->new($session); - my $f = WebGUI::HTMLForm->new($session,-action=>"#",-extras=>'name"linkchooser"'); + my $f = WebGUI::HTMLForm->new($session,-action=>"#",-extras=>'name="linkchooser"'); $f->text( -name=>"url", -label=>$i18n->get(104), @@ -132,6 +132,7 @@ sub www_richEditPageTree { my $output = '
'.$i18n->get('insert a link').'
'.$i18n->get('insert a link').''.$f->print.'
'.$i18n->get('pages').' '; my $base = WebGUI::Asset->newByUrl($session) || WebGUI::Asset->getRoot($session); my @crumb; @@ -158,8 +160,8 @@ function createLink() { next unless $child->canView; $output .= '['.$i18n->get("select").'] '.$child->get("menuTitle").''."
\n"; } - $session->style->useEmptyStyle("1"); - return $output.'
'; + $output .= ''; + return $session->style->process($output, 'PBtmpl0000000000000137'); } @@ -212,8 +214,7 @@ sub www_richEditImageTree { } push(@output, ''.$child->get("menuTitle").''."
\n"); } - $session->style->useEmptyStyle("1"); - return join('', @output); + return $session->style->process(join('', @output), 'PBtmpl0000000000000137'); } @@ -231,24 +232,27 @@ sub www_richEditViewThumbnail { $session->http->setCacheControl("none"); my $image = WebGUI::Asset->newByUrl($session); my $i18n = WebGUI::International->new($session); - $session->style->useEmptyStyle("1"); + my $output; if ($image->get("className") =~ /WebGUI::Asset::File::Image/) { - my $output = '
'; + $output = '
'; $output .= ''.$i18n->get('preview').''; $output .= '
'; $output .= $image->get("filename"); $output .= '
'; $output .= '\n"; - return $output; + } else { + $output = '
'.$i18n->get('image manager').'
'; } - return '
'.$i18n->get('image manager').'
'; + return $session->style->process($output, 'PBtmpl0000000000000137'); } #-------------------------------------------------------------------