From 0ab11cae6ff8dc62e5cbf8d00b4094582b2d74e6 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Wed, 20 Apr 2005 20:14:22 +0000 Subject: [PATCH] Added a select all option to the clipboard selector in the asset manager. --- docs/changelog/6.x.x.txt | 1 + lib/WebGUI/Asset.pm | 12 +++++++++++- lib/WebGUI/i18n/English/Asset.pm | 6 ++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/docs/changelog/6.x.x.txt b/docs/changelog/6.x.x.txt index 4890b3d94..7728397ea 100644 --- a/docs/changelog/6.x.x.txt +++ b/docs/changelog/6.x.x.txt @@ -22,6 +22,7 @@ - Added packages list to the content adder in the asset manager. - Added edit icons to the list of prototypes and packages in the asset manager. + - Added a select all option to the clipboard selector in the asset manager. 6.5.6 diff --git a/lib/WebGUI/Asset.pm b/lib/WebGUI/Asset.pm index 984441547..80f279e09 100644 --- a/lib/WebGUI/Asset.pm +++ b/lib/WebGUI/Asset.pm @@ -3131,11 +3131,21 @@ sub www_manageAssets { $output .= '
'.WebGUI::International::get(1082,"Asset").'' .WebGUI::Form::formHeader() .WebGUI::Form::hidden({name=>"func",value=>"pasteList"}) + .WebGUI::Form::checkbox({extras=>'onchange="toggleClipboardSelectAll(this.form);"'}) + .' '.WebGUI::International::get("select all","Asset").'
' .WebGUI::Form::checkList({name=>"assetId",vertical=>1,options=>\%options}) .'
' .WebGUI::Form::submit({value=>"Paste"}) .WebGUI::Form::formFooter() - .'
'; + .' ' + .''; } my $hasPackages = 0; my $packages; diff --git a/lib/WebGUI/i18n/English/Asset.pm b/lib/WebGUI/i18n/English/Asset.pm index 8f5247cf6..c180f0c78 100644 --- a/lib/WebGUI/i18n/English/Asset.pm +++ b/lib/WebGUI/i18n/English/Asset.pm @@ -8,6 +8,12 @@ our $I18N = { context => q|Used when editing an entire branch, and asks whether the user wants to change this field recursively.| }, + 'select all' => { + message => q|Select All|, + lastUpdated => 1099344172, + context => q|A label for the select all checkbox on the asset manager clipboard| + }, + 'packages' => { message => q|Packages|, lastUpdated => 1099344172,