fixed a display bug in asset search
added a + next to items in the asset manager that have children templates now index their namespace so you can search on that
This commit is contained in:
parent
95d03913ed
commit
6a2ba37ef1
3 changed files with 10 additions and 6 deletions
|
|
@ -38,6 +38,8 @@
|
|||
- Converted WebGUI to use a new object oriented session system. More details
|
||||
in migation.txt.
|
||||
- Added a sort alphabetically option to the folder asset.
|
||||
- Added a symbol next to items in the asset manager to indicate if they have
|
||||
children or not.
|
||||
- Added a screenshot feature to the matrix.
|
||||
- Added an option to delete Matrix fields.
|
||||
- Added an API for retrieving email from POP3 servers.
|
||||
|
|
|
|||
|
|
@ -1083,8 +1083,8 @@ sub manageAssets {
|
|||
//<![CDATA[
|
||||
var assetManager = new AssetManager();
|
||||
assetManager.AddColumn('".WebGUI::Form::checkbox($self->session,{extras=>'onchange="toggleAssetListSelectAll(this.form);"'})."','','center','form');
|
||||
assetManager.AddColumn('".$i18n->get("rank")."','style=\"cursor:move\"','center','numeric');
|
||||
assetManager.AddColumn(' ','','center','');
|
||||
assetManager.AddColumn('".$i18n->get("rank")."','style=\"cursor:move\"','right','numeric');
|
||||
assetManager.AddColumn('".$i18n->get("99")."','','left','');
|
||||
assetManager.AddColumn('".$i18n->get("type")."','','left','');
|
||||
assetManager.AddColumn('".$i18n->get("last updated")."','','center','');
|
||||
|
|
@ -1112,14 +1112,16 @@ sub manageAssets {
|
|||
$locked = '<img src="'.$self->session->config->get("extrasURL").'/assetManager/unlocked.gif" alt="unlocked" style="border: 0px;" />';
|
||||
}
|
||||
my $lockLink = ", '<a href=\"".$child->getUrl("func=manageRevisions")."\">".$locked."</a>'";
|
||||
my $plus = "' '+";
|
||||
$plus = "'+ '+" if ($child->hasChildren);
|
||||
$output .= "assetManager.AddLine('"
|
||||
.WebGUI::Form::checkbox($self->session,{
|
||||
name=>'assetId',
|
||||
value=>$child->getId
|
||||
})
|
||||
."',".$edit."contextMenu.draw(),"
|
||||
.$child->getRank
|
||||
.",'<a href=\"".$child->getUrl("func=manageAssets")."\">".$title
|
||||
."',".$child->getRank
|
||||
.",".$edit."contextMenu.draw()"
|
||||
.",".$plus."'<a href=\"".$child->getUrl("func=manageAssets")."\">".$title
|
||||
."</a>','<img src=\"".$child->getIcon(1)."\" style=\"border: 0px;\" alt=\"".$child->getName."\" /> ".$child->getName
|
||||
."','".$self->session->datetime->epochToHuman($child->get("revisionDate"))
|
||||
."','".formatBytes($child->get("assetSize"))."'".$lockLink.");\n";
|
||||
|
|
@ -1289,8 +1291,7 @@ sub manageAssetsSearch {
|
|||
value=>$child->getId
|
||||
})
|
||||
."',".$edit."contextMenu.draw(),"
|
||||
.$child->getRank
|
||||
.",'<a href=\"".$child->getUrl("func=manageAssets&manage=1")."\">".$title
|
||||
."'<a href=\"".$child->getUrl("func=manageAssets&manage=1")."\">".$title
|
||||
."</a>','<img src=\"".$child->getIcon(1)."\" style=\"border: 0px;\" alt=\"".$child->getName."\" /> ".$child->getName
|
||||
."','".$self->session->datetime->epochToHuman($child->get("revisionDate"))
|
||||
."','".formatBytes($child->get("assetSize"))."'".$lockLink.");\n";
|
||||
|
|
|
|||
|
|
@ -251,6 +251,7 @@ Making private. See WebGUI::Asset::indexContent() for additonal details.
|
|||
sub indexContent {
|
||||
my $self = shift;
|
||||
my $indexer = $self->SUPER::indexContent;
|
||||
$indexer->addKeywords($self->get("namespace"));
|
||||
$indexer->setIsPublic(0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue