Skip to content

Commit 114a00e

Browse files
author
Jim Graham
committed
Reincorporate changes lost in rebase
1 parent 60a192c commit 114a00e

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed

Diff for: manager/assets/modext/widgets/element/modx.panel.chunk.js

+9
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ MODx.panel.Chunk = function(config) {
8282
,maxLength: 50
8383
,enableKeyEvents: true
8484
,allowBlank: false
85+
,blankText: _('chunk_err_ns_name')
8586
,value: config.record.name
8687
,tabIndex: 1
8788
,listeners: {
@@ -95,6 +96,9 @@ MODx.panel.Chunk = function(config) {
9596
}
9697
,scope: this
9798
}
99+
,change: {
100+
fn: MODx.util.stripAndEncode.onChange
101+
}
98102
}
99103
},{
100104
xtype: MODx.expandHelp ? 'label' : 'hidden'
@@ -173,6 +177,11 @@ MODx.panel.Chunk = function(config) {
173177
,maxLength: 255
174178
,tabIndex: 5
175179
,value: config.record.description || ''
180+
,listeners: {
181+
change: {
182+
fn: MODx.util.stripAndEncode.onChange
183+
}
184+
}
176185
},{
177186
xtype: MODx.expandHelp ? 'label' : 'hidden'
178187
,forId: 'modx-chunk-description'

Diff for: manager/assets/modext/widgets/element/modx.panel.plugin.js

+9
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ MODx.panel.Plugin = function(config) {
8282
,maxLength: 50
8383
,enableKeyEvents: true
8484
,allowBlank: false
85+
,blankText: _('plugin_err_ns_name')
8586
,value: config.record.name
8687
,tabIndex: 1
8788
,listeners: {
@@ -92,6 +93,9 @@ MODx.panel.Plugin = function(config) {
9293
}
9394
,scope: this
9495
}
96+
,change: {
97+
fn: MODx.util.stripAndEncode.onChange
98+
}
9599
}
96100
},{
97101
xtype: MODx.expandHelp ? 'label' : 'hidden'
@@ -160,6 +164,11 @@ MODx.panel.Plugin = function(config) {
160164
,maxLength: 255
161165
,tabIndex: 3
162166
,value: config.record.description || ''
167+
,listeners: {
168+
change: {
169+
fn: MODx.util.stripAndEncode.onChange
170+
}
171+
}
163172
},{
164173
xtype: MODx.expandHelp ? 'label' : 'hidden'
165174
,forId: 'modx-plugin-description'

Diff for: manager/assets/modext/widgets/element/modx.panel.snippet.js

+9
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ MODx.panel.Snippet = function(config) {
8585
,maxLength: 50
8686
,enableKeyEvents: true
8787
,allowBlank: false
88+
,blankText: _('snippet_err_ns_name')
8889
,value: config.record.name
8990
,tabIndex: 1
9091
,listeners: {
@@ -98,6 +99,9 @@ MODx.panel.Snippet = function(config) {
9899
}
99100
,scope: this
100101
}
102+
,change: {
103+
fn: MODx.util.stripAndEncode.onChange
104+
}
101105
}
102106
},{
103107
xtype: MODx.expandHelp ? 'label' : 'hidden'
@@ -176,6 +180,11 @@ MODx.panel.Snippet = function(config) {
176180
,maxLength: 255
177181
,tabIndex: 3
178182
,value: config.record.description || ''
183+
,listeners: {
184+
change: {
185+
fn: MODx.util.stripAndEncode.onChange
186+
}
187+
}
179188
},{
180189
xtype: MODx.expandHelp ? 'label' : 'hidden'
181190
,forId: 'modx-snippet-description'

Diff for: manager/assets/modext/widgets/element/modx.panel.template.js

+9
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ MODx.panel.Template = function(config) {
8383
,maxLength: 50
8484
,enableKeyEvents: true
8585
,allowBlank: false
86+
,blankText: _('template_err_ns_name')
8687
,value: config.record.templatename
8788
,tabIndex: 1
8889
,listeners: {
@@ -93,6 +94,9 @@ MODx.panel.Template = function(config) {
9394
}
9495
,scope: this
9596
}
97+
,change: {
98+
fn: MODx.util.stripAndEncode.onChange
99+
}
96100
}
97101
},{
98102
xtype: MODx.expandHelp ? 'label' : 'hidden'
@@ -161,6 +165,11 @@ MODx.panel.Template = function(config) {
161165
,maxLength: 255
162166
,tabIndex: 5
163167
,value: config.record.description || ''
168+
,listeners: {
169+
change: {
170+
fn: MODx.util.stripAndEncode.onChange
171+
}
172+
}
164173
},{
165174
xtype: MODx.expandHelp ? 'label' : 'hidden'
166175
,forId: 'modx-template-description'

0 commit comments

Comments
 (0)