Skip to content

Commit 3c9e1dd

Browse files
update
1 parent 955d745 commit 3c9e1dd

File tree

7 files changed

+151
-10
lines changed

7 files changed

+151
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
| Название | Автор | Дата создания | Дата обновления |
22
| --- | --- | --- | --- |
3-
| EvoFileManagerDialog Evolution CMS | Чернышёв Андрей aka ProjectSoft <projectsoft2009@yandex.ru> | 2017-11-24 | 2024-02-04 |
3+
| EvoFileManagerDialog Evolution CMS | Чернышёв Андрей aka ProjectSoft <projectsoft2009@yandex.ru> | 2017-11-24 | 2024-04-18 |
44

55
# EvoFileManagerDialog
66

Lines changed: 110 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,110 @@
1-
@charset "UTF-8";#actions{display:flex;flex-direction:column}#actions .btn-group{z-index:10}#actions>.btn-group{margin-bottom:.2em}#actions>.btn-group:last-first{margin-bottom:0}#actions .evoflbw_wrapper.btn-group{z-index:0}#kcfinder_div{display:none;position:fixed;top:0;left:0;right:0;bottom:0;width:100%;height:100%;background:rgba(138,138,138,.4);padding:1px;z-index:99999999999;user-select:none;flex-direction:column;align-items:center;justify-content:center}#kcfinder_div .kcfinder-window{background-color:#fff;position:fixed;border-radius:5px;min-width:90%;height:100vh;max-width:100%}#kcfinder_div .kcfinder-window .kcfinder-body{position:relative;overflow:hidden;height:calc(100% - 48px);padding:0 5px 5px 5px}#kcfinder_div .kcfinder-header{display:block;border-spacing:0;padding:10px 5px 0 5px;font-weight:700;font-size:18px;width:100%;max-width:100%;white-space:nowrap;overflow:hidden;border-bottom:1px solid #ccc;cursor:move}#kcfinder_div .kcfinder-header>span{display:inline-block;vertical-align:top;line-height:1;height:25px}#kcfinder_div .kcfinder-header .kcfinder-header-title{width:calc(100% - 40px);overflow:hidden;text-overflow:ellipsis;text-align:left}#kcfinder_div .kcfinder-header .kcfinder-header-close{padding:5px;cursor:pointer;text-align:center;width:35px;font-size:40px;line-height:.25;float:right}#kcfinder-frame{position:relative;height:100%;width:100%;overflow:hidden;border-left:1px solid #ccc;border-right:1px solid #ccc;border-bottom:1px solid #ccc}#kcfinder-frame iframe{height:100%;width:100%;position:relative;border:0 solid transparent;user-select:none}h1{margin-bottom:1.6rem}
1+
@charset "UTF-8";
2+
/*
3+
*
4+
* Стили кнопок в блоке действий ресурса
5+
* Стили окна файлменеджера
6+
* Для сборки файла требуется установить
7+
* $ npm install -g less
8+
* $ npm i less-plugin-clean-css -g
9+
*
10+
*/
11+
#actions {
12+
display: flex;
13+
flex-direction: column;
14+
}
15+
#actions .btn-group {
16+
z-index: 10;
17+
}
18+
#actions > .btn-group {
19+
margin-bottom: 0.2em;
20+
}
21+
#actions > .btn-group:last-first {
22+
margin-bottom: 0em;
23+
}
24+
#actions .evoflbw_wrapper.btn-group {
25+
z-index: 0;
26+
}
27+
#kcfinder_div {
28+
display: none;
29+
position: fixed;
30+
top: 0px;
31+
left: 0px;
32+
right: 0px;
33+
bottom: 0px;
34+
width: 100%;
35+
height: 100%;
36+
background: rgba(138, 138, 138, 0.4);
37+
padding: 1px;
38+
z-index: 99999999999;
39+
user-select: none;
40+
flex-direction: column;
41+
align-items: center;
42+
justify-content: center;
43+
}
44+
#kcfinder_div .kcfinder-window {
45+
background-color: #fff;
46+
position: fixed;
47+
border-radius: 5px;
48+
min-width: 90%;
49+
height: 100vh;
50+
max-width: 100%;
51+
}
52+
#kcfinder_div .kcfinder-window .kcfinder-body {
53+
position: relative;
54+
overflow: hidden;
55+
height: calc(100% - 48px);
56+
padding: 0px 5px 5px 5px;
57+
}
58+
#kcfinder_div .kcfinder-header {
59+
display: block;
60+
border-spacing: 0px;
61+
padding: 10px 5px 0px 5px;
62+
font-weight: bold;
63+
font-size: 18px;
64+
width: 100%;
65+
max-width: 100%;
66+
white-space: nowrap;
67+
overflow: hidden;
68+
border-bottom: 1px solid #ccc;
69+
cursor: move;
70+
}
71+
#kcfinder_div .kcfinder-header > span {
72+
display: inline-block;
73+
vertical-align: top;
74+
line-height: 1;
75+
height: 25px;
76+
}
77+
#kcfinder_div .kcfinder-header .kcfinder-header-title {
78+
width: calc(100% - 40px);
79+
overflow: hidden;
80+
text-overflow: ellipsis;
81+
text-align: left;
82+
}
83+
#kcfinder_div .kcfinder-header .kcfinder-header-close {
84+
padding: 5px;
85+
cursor: pointer;
86+
text-align: center;
87+
width: 35px;
88+
font-size: 40px;
89+
line-height: 0.25;
90+
float: right;
91+
}
92+
#kcfinder-frame {
93+
position: relative;
94+
height: 100%;
95+
width: 100%;
96+
overflow: hidden;
97+
border-left: 1px solid #ccc;
98+
border-right: 1px solid #ccc;
99+
border-bottom: 1px solid #ccc;
100+
}
101+
#kcfinder-frame iframe {
102+
height: 100%;
103+
width: 100%;
104+
position: relative;
105+
border: 0px solid transparent;
106+
user-select: none;
107+
}
108+
h1 {
109+
margin-bottom: 1.6rem;
110+
}

assets/plugins/filemanageropen/js/main.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,20 @@
253253
var iframeDocument = $kcfinderFrame[0].contentWindow.document;
254254
$('.kcfinder-header .kcfinder-header-title', $kcfinderBlock).text(iframeDocument.title);
255255
$('a[href="kcact:maximize"]', iframeDocument).hide();
256+
var callback = function (mutationsList, observer) {
257+
$('.kcfinder-header .kcfinder-header-title', $kcfinderBlock).text(iframeDocument.title);
258+
};
259+
var observer = new MutationObserver(callback);
260+
observer.observe($("title", iframeDocument)[0], {
261+
attributes: true,
262+
childList: true,
263+
subtree: true,
264+
});
265+
/**
256266
$("title", iframeDocument)[0].addEventListener("DOMSubtreeModified", function() {
257267
$('.kcfinder-header .kcfinder-header-title', $kcfinderBlock).text(iframeDocument.title);
258268
});
269+
*/
259270
});
260271
}
261272
// Переопределяем глобальную функию BrowseServer

assets/plugins/filemanageropen/js/main.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

install/assets/plugins/filemanageropen.tpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Плагин открытия файлменеджера не в новом окне браузера, а во всплывающем окне админки Evolution CMS.
66
*
77
* @category plugin
8-
* @version 1.2.6
8+
* @version 1.2.7
99
* @package evo
1010
* @internal @events OnManagerMainFrameHeaderHTMLBlock
1111
* @internal @modx_category Manager and Admin
@@ -16,7 +16,7 @@
1616
* @license https://github.com/ProjectSoft-STUDIONIONS/evoFileManagerDialog/blob/master/LICENSE MIT License (MIT)
1717
* @reportissues https://github.com/ProjectSoft-STUDIONIONS/evoFileManagerDialog/issues
1818
* @author Чернышёв Андрей aka ProjectSoft <projectsoft2009@yandex.ru>
19-
* @lastupdate 2024-02-04
19+
* @lastupdate 2024-04-18
2020
*/
2121

2222
/**
@@ -25,7 +25,7 @@
2525
* Плагин открытия файлменеджера не в новом окне браузера, а во всплывающем окне админки Evolution CMS.
2626
*
2727
* @category plugin
28-
* @version 1.2.6
28+
* @version 1.2.7
2929
* @package evo
3030
* @internal @events OnManagerMainFrameHeaderHTMLBlock
3131
* @internal @modx_category Manager and Admin
@@ -36,6 +36,6 @@
3636
* @license https://github.com/ProjectSoft-STUDIONIONS/evoFileManagerDialog/blob/master/LICENSE MIT License (MIT)
3737
* @reportissues https://github.com/ProjectSoft-STUDIONIONS/evoFileManagerDialog/issues
3838
* @author Чернышёв Андрей aka ProjectSoft <projectsoft2009@yandex.ru>
39-
* @lastupdate 2024-02-04
39+
* @lastupdate 2024-04-18
4040
*/
4141
require MODX_BASE_PATH.'assets/plugins/filemanageropen/plugin.filemanageropen.php';

0 commit comments

Comments
 (0)