Skip to content

Commit

Permalink
Add source name in context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruslan-Aleev committed Jun 18, 2023
1 parent 69a7d6d commit 793589b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions manager/assets/modext/widgets/system/modx.tree.directory.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ Ext.extend(MODx.tree.Directory,MODx.tree.Tree,{
*/
,getRootMenu: function(node) {
var menu = [];
menu.push({
text: '<b>'+node.attributes.text+'</b>'
,handler: function() {return false;}
,header: true
});
menu.push('-');
if (MODx.perm.directory_create) {
menu.push({
text: _('file_folder_create')
Expand Down

0 comments on commit 793589b

Please sign in to comment.