Added a select all option to the clipboard selector in the asset manager.
This commit is contained in:
parent
e513526f46
commit
0ab11cae6f
3 changed files with 18 additions and 1 deletions
|
|
@ -22,6 +22,7 @@
|
||||||
- Added packages list to the content adder in the asset manager.
|
- Added packages list to the content adder in the asset manager.
|
||||||
- Added edit icons to the list of prototypes and packages in the asset
|
- Added edit icons to the list of prototypes and packages in the asset
|
||||||
manager.
|
manager.
|
||||||
|
- Added a select all option to the clipboard selector in the asset manager.
|
||||||
|
|
||||||
|
|
||||||
6.5.6
|
6.5.6
|
||||||
|
|
|
||||||
|
|
@ -3131,11 +3131,21 @@ sub www_manageAssets {
|
||||||
$output .= '<div style="float: left; padding-right: 30px; font-size: 14px;"><fieldset><legend>'.WebGUI::International::get(1082,"Asset").'</legend>'
|
$output .= '<div style="float: left; padding-right: 30px; font-size: 14px;"><fieldset><legend>'.WebGUI::International::get(1082,"Asset").'</legend>'
|
||||||
.WebGUI::Form::formHeader()
|
.WebGUI::Form::formHeader()
|
||||||
.WebGUI::Form::hidden({name=>"func",value=>"pasteList"})
|
.WebGUI::Form::hidden({name=>"func",value=>"pasteList"})
|
||||||
|
.WebGUI::Form::checkbox({extras=>'onchange="toggleClipboardSelectAll(this.form);"'})
|
||||||
|
.' '.WebGUI::International::get("select all","Asset").'<br />'
|
||||||
.WebGUI::Form::checkList({name=>"assetId",vertical=>1,options=>\%options})
|
.WebGUI::Form::checkList({name=>"assetId",vertical=>1,options=>\%options})
|
||||||
.'<br />'
|
.'<br />'
|
||||||
.WebGUI::Form::submit({value=>"Paste"})
|
.WebGUI::Form::submit({value=>"Paste"})
|
||||||
.WebGUI::Form::formFooter()
|
.WebGUI::Form::formFooter()
|
||||||
.' </fieldset></div> ';
|
.' </fieldset></div> '
|
||||||
|
.'<script type="text/javascript">
|
||||||
|
var clipboardItemSelectAllToggle = false;
|
||||||
|
function toggleClipboardSelectAll(form){
|
||||||
|
clipboardItemSelectAllToggle = clipboardItemSelectAllToggle ? false : true;
|
||||||
|
for(var i = 0; i < form.assetId.length; i++)
|
||||||
|
form.assetId[i].checked = clipboardItemSelectAllToggle;
|
||||||
|
}
|
||||||
|
</script>';
|
||||||
}
|
}
|
||||||
my $hasPackages = 0;
|
my $hasPackages = 0;
|
||||||
my $packages;
|
my $packages;
|
||||||
|
|
|
||||||
|
|
@ -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.|
|
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' => {
|
'packages' => {
|
||||||
message => q|Packages|,
|
message => q|Packages|,
|
||||||
lastUpdated => 1099344172,
|
lastUpdated => 1099344172,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue