Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Define InfoPanelExtension for "ajxp_root_node" mime, used only on the…
Browse files Browse the repository at this point in the history
… root node. If none is define, we use "no_selection" instead.
  • Loading branch information
cdujeu committed Nov 15, 2013
1 parent 198118e commit 2b05cfd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/src/plugins/gui.ajax/res/js/ajaxplorer.js

Large diffs are not rendered by default.

Expand Up @@ -166,13 +166,13 @@ Class.create("InfoPanel", AjxpPane, {
}
}

this.evalTemplateForMime("no_selection", null, {
this.evalTemplateForMime((contextNode.getPath() =="/" && this.registeredMimes.get("ajxp_root_node") ? "ajxp_root_node": "no_selection"), (contextNode.getPath() =="/" ? contextNode : null), {
filelist_folders_count:folderNumber,
filelist_files_count:filesNumber,
filelist_totalsize:roundSize(size, (MessageHash?MessageHash[266]:'B')),
current_folder:currentRep
});
try{
try{
if(!folderNumber && $(this.contentContainer).select('[id="filelist_folders_count"]').length){
$(this.contentContainer).select('[id="filelist_folders_count"]')[0].hide();
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/meta.comments/manifest.xml
Expand Up @@ -19,7 +19,7 @@
</hooks>
<client_configs>
<component_config className="InfoPanel">
<infoPanelExtension mime="meta:ajxp_has_comments_feed" attributes="" modifier="CommentsPanel.prototype.loadInfoPanel">
<infoPanelExtension mime="meta:ajxp_has_comments_feed,ajxp_root_node" attributes="" modifier="CommentsPanel.prototype.loadInfoPanel">
<html><![CDATA[
<div id="ajxp_comments_info_panel">
<div class="panelHeader infoPanelGroup" colspan="2"><span class="icon-comments-alt" data-ajxpAction="comments" title="Users Comments"></span>Users Comments</div>
Expand Down

0 comments on commit 2b05cfd

Please sign in to comment.