diff --git a/lib/WebGUI/Asset.pm b/lib/WebGUI/Asset.pm index a89a8f1a2..abb26cd5e 100644 --- a/lib/WebGUI/Asset.pm +++ b/lib/WebGUI/Asset.pm @@ -2467,6 +2467,10 @@ sub www_copyList { $newAsset->cut; } } + if ($session{form}{proceed} ne "") { + my $method = "www_".$session{form}{proceed}; + return $self->$method(); + } return $self->www_manageAssets(); } @@ -2531,6 +2535,10 @@ sub www_cutList { $asset->cut; } } + if ($session{form}{proceed} ne "") { + my $method = "www_".$session{form}{proceed}; + return $self->$method(); + } return $self->www_manageAssets(); } @@ -2568,6 +2576,10 @@ sub www_deleteList { $asset->trash; } } + if ($session{form}{proceed} ne "") { + my $method = "www_".$session{form}{proceed}; + return $self->$method(); + } return $self->www_manageAssets(); } @@ -3184,7 +3196,7 @@ sub www_manageAssets { $output .= "
 
@@ -3330,7 +3347,7 @@ WebGUI::Style::setLink($session{config}{extrasURL}.'/assetManager/assetManager.c my $output = "
 
'; return $ac->render($output, $header); } @@ -3411,7 +3434,7 @@ sub www_manageTrash { my $output = "
 
'; return $ac->render($output, $header); } @@ -3500,6 +3529,10 @@ sub www_restoreList { my $asset = WebGUI::Asset->newByDynamicClass($id); $asset->publish; } + if ($session{form}{proceed} ne "") { + my $method = "www_".$session{form}{proceed}; + return $self->$method(); + } return $self->www_manageTrash(); } diff --git a/lib/WebGUI/i18n/English/Asset.pm b/lib/WebGUI/i18n/English/Asset.pm index 90803e77a..5470cbb82 100644 --- a/lib/WebGUI/i18n/English/Asset.pm +++ b/lib/WebGUI/i18n/English/Asset.pm @@ -100,13 +100,7 @@ our $I18N = { 'select all' => { message => q|Select All|, lastUpdated => 1099344172, - context => q|A label for the select all checkbox on the asset manager clipboard| - }, - - 'unselect all' => { - message => q|Unselect All|, - lastUpdated => 1119240143, - context => q|A label for the unselect all checkbox on the asset manager| + context => q|A label for the select all checkbox on the asset manager| }, 'packages' => { diff --git a/www/extras/assetManager/assetManager.js b/www/extras/assetManager/assetManager.js index c22ae2745..2c103e56f 100644 --- a/www/extras/assetManager/assetManager.js +++ b/www/extras/assetManager/assetManager.js @@ -39,11 +39,12 @@ function AssetManager_AddLine() { } // Add a button to the form -function AssetManager_AddButton(label,func) { +function AssetManager_AddButton(label,func,proceed) { var index = this.Buttons.length; this.Buttons[index] = new Object(); this.Buttons[index].label = label; this.Buttons[index].func = func; + this.Buttons[index].proceed = proceed; } // Define sorting data for the last line added @@ -77,11 +78,12 @@ function AssetManager_AddColumn(name,td,align,type) { function AssetManager_Write() { var open_div = ""; var close_div = ""; - document.write('
'); + document.write(''); document.write(''); document.write(''); for (var i=0; i'+this.Columns[i].name+''); + var title = (this.Columns[i].type == "form") ? this.Columns[i].name : ''+this.Columns[i].name+''; + document.write(''); } document.write(''); for (var i=0; i
'+title+'
'); for (var j=0; j'); + document.write(''); } document.write(''); }