@concretecms/bedrock 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/assets/cms/js/tree.js
CHANGED
|
@@ -140,8 +140,8 @@ ConcreteTree.prototype = {
|
|
|
140
140
|
if (options.chooseNodeInForm) {
|
|
141
141
|
const keys = my.getSelectedNodeKeys(data.tree.getRootNode(), ajaxData.treeNodeSelectedIDs)
|
|
142
142
|
if (keys.length) {
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
options.onSelect(keys)
|
|
144
|
+
}
|
|
145
145
|
}
|
|
146
146
|
},
|
|
147
147
|
|
|
@@ -310,8 +310,14 @@ ConcreteTree.prototype = {
|
|
|
310
310
|
getSelectedNodeKeys: function (node, selected) {
|
|
311
311
|
var my = this
|
|
312
312
|
|
|
313
|
-
// Initialize selected
|
|
313
|
+
// Initialize selected array
|
|
314
314
|
selected = selected || []
|
|
315
|
+
|
|
316
|
+
// Remove keys that are not in the tree anymore
|
|
317
|
+
selected = selected.filter(function (key) {
|
|
318
|
+
return $.ui.fancytree.getTree(my.$element).getNodeByKey(parseInt(key)) !== null
|
|
319
|
+
})
|
|
320
|
+
|
|
315
321
|
// Walk through all child nodes
|
|
316
322
|
if (node.hasChildren()) {
|
|
317
323
|
node.getChildren().forEach(function (child) {
|
|
@@ -131,6 +131,11 @@ div#ccm-popup-alert-message {
|
|
|
131
131
|
right: 30px;
|
|
132
132
|
width: 380px;
|
|
133
133
|
z-index: $index-level-page-alert;
|
|
134
|
+
@media only screen and (max-width: 768px) {
|
|
135
|
+
left: 0;
|
|
136
|
+
right: 0;
|
|
137
|
+
width: 100vw;
|
|
138
|
+
}
|
|
134
139
|
}
|
|
135
140
|
|
|
136
141
|
.ccm-notifications-box-header {
|
|
@@ -7,6 +7,9 @@ div#ccm-toolbar {
|
|
|
7
7
|
position: fixed;
|
|
8
8
|
top: 0;
|
|
9
9
|
width: 100%;
|
|
10
|
+
@media only screen and (max-width: 768px) {
|
|
11
|
+
width: 100vw;
|
|
12
|
+
}
|
|
10
13
|
z-index: $index-level-main-bar; /* over the top of the highlighter, which is 1000 */
|
|
11
14
|
|
|
12
15
|
.ccm-toolbar-accessibility-title {
|
|
@@ -373,6 +376,22 @@ ul.ccm-mobile-menu {
|
|
|
373
376
|
}
|
|
374
377
|
}
|
|
375
378
|
|
|
379
|
+
.ccm-toolbar-mobile-add-pages-button {
|
|
380
|
+
border-left: 1px solid $gray-200;
|
|
381
|
+
cursor: pointer;
|
|
382
|
+
height: 47px;
|
|
383
|
+
padding: 14px 18px;
|
|
384
|
+
|
|
385
|
+
svg {
|
|
386
|
+
fill: $gray-600;
|
|
387
|
+
height: 16px;
|
|
388
|
+
margin: 0 auto;
|
|
389
|
+
transition: fill 0.25s ease-in-out;
|
|
390
|
+
vertical-align: baseline;
|
|
391
|
+
width: 16px;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
376
395
|
.ccm-mobile-toolbar-menu {
|
|
377
396
|
display: none;
|
|
378
397
|
|
|
@@ -9,9 +9,15 @@ html.ccm-toolbar-visible {
|
|
|
9
9
|
|
|
10
10
|
.ui-dialog {
|
|
11
11
|
box-shadow: $modal-content-box-shadow-sm-up;
|
|
12
|
+
max-width: 100vw;
|
|
12
13
|
padding: 0;
|
|
13
|
-
|
|
14
14
|
z-index: $index-level-dialog;
|
|
15
|
+
@media only screen and (max-width: 768px) {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
max-height: 100vh;
|
|
19
|
+
}
|
|
20
|
+
|
|
15
21
|
/* hide section titles for panels when those panels are shown in dialogs */
|
|
16
22
|
section {
|
|
17
23
|
header {
|
|
@@ -144,6 +150,5 @@ html.ccm-toolbar-visible {
|
|
|
144
150
|
button {
|
|
145
151
|
margin: $modal-footer-margin-between / 2;
|
|
146
152
|
}
|
|
147
|
-
|
|
148
153
|
}
|
|
149
154
|
}
|
|
@@ -99,6 +99,10 @@
|
|
|
99
99
|
display: block;
|
|
100
100
|
float: left;
|
|
101
101
|
width: 100%;
|
|
102
|
+
@media only screen and (max-width: 768px) {
|
|
103
|
+
display: flex;
|
|
104
|
+
flex-direction: column-reverse;
|
|
105
|
+
}
|
|
102
106
|
}
|
|
103
107
|
|
|
104
108
|
#ccm-dialog-attributes-menu {
|
|
@@ -107,6 +111,9 @@
|
|
|
107
111
|
margin: 0;
|
|
108
112
|
padding: 0;
|
|
109
113
|
width: 30%;
|
|
114
|
+
@media only screen and (max-width: 768px) {
|
|
115
|
+
width: auto;
|
|
116
|
+
}
|
|
110
117
|
}
|
|
111
118
|
|
|
112
119
|
#ccm-dialog-attributes-detail {
|
|
@@ -115,6 +122,10 @@
|
|
|
115
122
|
margin: 0 0 0 65px;
|
|
116
123
|
padding: 0;
|
|
117
124
|
width: calc(70% - 65px);
|
|
125
|
+
@media only screen and (max-width: 768px) {
|
|
126
|
+
margin: 0;
|
|
127
|
+
width: auto;
|
|
128
|
+
}
|
|
118
129
|
}
|
|
119
130
|
|
|
120
131
|
/**
|
package/package.json
CHANGED