Skip to content

Commit 922fc6c

Browse files
authored
Merge pull request #2161 from elcreator/remove-treeMenu_openelements
fix Uncaught TypeError: Cannot set properties of null
2 parents bfef7e7 + 446295c commit 922fc6c

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

manager/views/frame/1.blade.php

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -446,30 +446,6 @@ function constructLink($action, $img, $text, $allowed)
446446

447447
<script type="text/javascript">
448448
if (document.getElementById('treeMenu')) {
449-
@if (evo()->hasPermission('edit_template') ||
450-
evo()->hasPermission('edit_snippet') ||
451-
evo()->hasPermission('edit_chunk') ||
452-
evo()->hasPermission('edit_plugin'))
453-
454-
document.getElementById('treeMenu_openelements').onclick = function(e) {
455-
e.preventDefault();
456-
if (modx.config.global_tabs && !e.shiftKey) {
457-
modx.tabs({
458-
url: '{{ MODX_MANAGER_URL }}index.php?a=76',
459-
title: '{{ ManagerTheme::getLexicon('elements') }}'
460-
});
461-
} else {
462-
var randomNum = '{{ ManagerTheme::getLexicon('elements') }}';
463-
if (e.shiftKey) {
464-
randomNum += ' #' + Math.floor((Math.random() * 999999) + 1);
465-
}
466-
modx.openWindow({
467-
url: '{{ MODX_MANAGER_URL }}index.php?a=76',
468-
title: randomNum
469-
});
470-
}
471-
};
472-
@endif
473449
@if (evo()->getConfig('use_browser') && evo()->hasPermission('assets_images'))
474450
475451
document.getElementById('treeMenu_openimages').onclick = function(e) {

manager/views/frame/tree.blade.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@
2424
{{--@if(evo()->getConfig('use_browser') && evo()->hasPermission('assets_files'))
2525
<a class="treeButton" id="treeMenu_openfiles" title="{{ ManagerTheme::getLexicon('files_management') }}&#013;{{ ManagerTheme::getLexicon('em_button_shift') }}"><i class="{{ $_style['icon_files'] }}"></i></a>
2626
@endif --}}
27-
{{-- @if(evo()->hasPermission('edit_template') || evo()->hasPermission('edit_snippet') || evo()->hasPermission('edit_chunk') || evo()->hasPermission('edit_plugin'))
28-
<a class="treeButton" id="treeMenu_openelements" title="{{ ManagerTheme::getLexicon('element_management') }}&#013;{{ ManagerTheme::getLexicon('em_button_shift') }}"><i class="{{ $_style['icon_elements'] }}"></i></a>
29-
@endif --}}
3027
@if(evo()->hasPermission('empty_trash'))
3128
<a class="treeButton treeButtonDisabled" id="treeMenu_emptytrash" title="{{ ManagerTheme::getLexicon('empty_recycle_bin_empty') }}"><i class="{{ $_style['icon_trash'] }}"></i></a>
3229
@endif

0 commit comments

Comments
 (0)