Skip to content

Commit 726fa99

Browse files
committed
Merge pull request #1158 from camptocamp/protected_content_warning
the event property must also be set in the edition javascript
2 parents 13f8b6d + ed832f6 commit 726fa99

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

c2cgeoportal/scaffolds/create/+package+/templates/edit.js_tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ Ext.onReady(function() {
9999
{
100100
ptype: "cgxp_layertree",
101101
id: "layertree",
102+
events: EVENTS,
102103
outputConfig: {
103104
header: false,
104105
flex: 1,
@@ -122,6 +123,7 @@ Ext.onReady(function() {
122123
{
123124
ptype: "cgxp_login",
124125
actionTarget: "map.tbar",
126+
events: EVENTS,
125127
% if user:
126128
username: "${user.username}",
127129
% endif

c2cgeoportal/scaffolds/update/CONST_CHANGELOG.txt_tmpl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Version 1.5.2
99
- App.WFSTypes = '${wfs_types | n}'.split(',');
1010
+ App.WFSTypes = jsonFormat.read('${dumps(wfs_types) | n}');
1111

12-
2. In <package>/template/viewer.js file, for plugins ``cgxp_layertree`` and ``cgxp_login``,
12+
2. In the <package>/templates/viewer.js and <package>/templates/edit.js files, for plugins ``cgxp_layertree`` and ``cgxp_login``,
1313
add the ``events`` parameter:
1414

1515
...
@@ -20,7 +20,6 @@ Version 1.5.2
2020
...
2121
ptype: 'cgxp_login',
2222
actionTarget: 'center.tbar',
23-
toggleGroup: 'maptools',
2423
+ events: EVENTS,
2524
...
2625

0 commit comments

Comments
 (0)