Do not display a select all button in the AssetManager unless there's more than 1 asset.
This commit is contained in:
parent
4320d39b1c
commit
d1038fb698
2 changed files with 8 additions and 2 deletions
|
|
@ -11,6 +11,7 @@
|
|||
editing a Thing and the 'return after edit' setting was set to 'Thing
|
||||
Default' ( Martin Kamerbeek / Oqapi )
|
||||
- fixed: In the Asset Manager, if you pasted an asset if returned you to the page instead the manager.
|
||||
- fixed: In the Asset Manager, only display a Select All button if there is more than one asset.
|
||||
|
||||
7.7.10
|
||||
- Made a change to LDAP auth that adds an OR to that query so that it also searches for a row with fieldData REGEXP '^uid=(value-from-ldap-directory-server),'. (Wes Morgan)
|
||||
|
|
|
|||
|
|
@ -464,16 +464,21 @@ ENDHTML
|
|||
|
||||
tie my %options, 'Tie::IxHash';
|
||||
my $hasClips = 0;
|
||||
my $clipNum = 0;
|
||||
foreach my $asset (@{$currentAsset->getAssetsInClipboard(1)}) {
|
||||
$options{$asset->getId} = '<img src="'.$asset->getIcon(1).'" alt="'.$asset->getName.'" style="border: 0px;" /> '.$asset->getTitle;
|
||||
$hasClips = 1;
|
||||
$clipNum++;
|
||||
}
|
||||
if ($hasClips) {
|
||||
$output .= '<div class="functionPane"><fieldset><legend>'.$i18n->get(1082).'</legend>'
|
||||
.WebGUI::Form::formHeader($session, {action=>$currentAsset->getUrl})
|
||||
.WebGUI::Form::hidden($session,{name=>"func",value=>"pasteList"})
|
||||
.WebGUI::Form::checkbox($session,{extras=>'onclick="toggleClipboardSelectAll(this.form);"'})
|
||||
.' '.$i18n->get("select all").'<br />'
|
||||
.( $clipNum > 1
|
||||
? WebGUI::Form::checkbox($session,{extras=>'onclick="toggleClipboardSelectAll(this.form);"'}).' '.$i18n->get("select all").'<br />'
|
||||
: ''
|
||||
)
|
||||
|
||||
.WebGUI::Form::checkList($session,{name=>"assetId",vertical=>1,options=>\%options})
|
||||
.'<br />'
|
||||
.WebGUI::Form::submit($session,{value=>"Paste"})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue