From f75e28f61faaa1b014498a2bb9ec05e39638a9d2 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Thu, 19 May 2005 15:28:56 +0000 Subject: [PATCH] literals require quoting in Javascript --- lib/WebGUI/Asset/FilePile.pm | 2 +- lib/WebGUI/Asset/Post.pm | 2 +- lib/WebGUI/Form.pm | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/WebGUI/Asset/FilePile.pm b/lib/WebGUI/Asset/FilePile.pm index 023de9467..7af6ba942 100644 --- a/lib/WebGUI/Asset/FilePile.pm +++ b/lib/WebGUI/Asset/FilePile.pm @@ -218,7 +218,7 @@ sub getUploadControl { $uploadControl .= 'images["'.$ext.'"] = "'.$session{config}{extrasURL}.'/fileIcons/'.$file.'";'."\n"; } } - $uploadControl .= 'var uploader = new FileUploadControl("fileUploadControl", images, '.WebGUI::International::get('removeLabel','WebGUI').'); + $uploadControl .= 'var uploader = new FileUploadControl("fileUploadControl", images, "'.WebGUI::International::get('removeLabel','WebGUI').'"); uploader.addRow(); '; return $uploadControl; diff --git a/lib/WebGUI/Asset/Post.pm b/lib/WebGUI/Asset/Post.pm index 33fb9c28b..80991f258 100644 --- a/lib/WebGUI/Asset/Post.pm +++ b/lib/WebGUI/Asset/Post.pm @@ -490,7 +490,7 @@ sub getUploadControl { $uploadControl .= 'images["'.$ext.'"] = "'.$session{config}{extrasURL}.'/fileIcons/'.$file.'";'."\n"; } } - $uploadControl .= 'var uploader = new FileUploadControl("fileUploadControl", images, '.WebGUI::International::get('removeLabel','WebGUI').'); + $uploadControl .= 'var uploader = new FileUploadControl("fileUploadControl", images, "'.WebGUI::International::get('removeLabel','WebGUI').'"); uploader.addRow(); '; return $uploadControl; diff --git a/lib/WebGUI/Form.pm b/lib/WebGUI/Form.pm index 7b15f4cc2..c0dbbd82e 100644 --- a/lib/WebGUI/Form.pm +++ b/lib/WebGUI/Form.pm @@ -833,7 +833,7 @@ sub files { $uploadControl .= 'images["'.$ext.'"] = "'.$session{config}{extrasURL}.'/fileIcons/'.$file.'";'."\n"; } } - $uploadControl .= 'var uploader = new FileUploadControl("fileUploadControl", images, '.WebGUI::International::get('removeLabel','WebGUI').'); + $uploadControl .= 'var uploader = new FileUploadControl("fileUploadControl", images, "'.WebGUI::International::get('removeLabel','WebGUI').'"); uploader.addRow(); '; return $uploadControl;