File tree 4 files changed +36
-0
lines changed
manager/assets/modext/widgets/element
4 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ MODx.panel.Chunk = function(config) {
82
82
, maxLength : 50
83
83
, enableKeyEvents : true
84
84
, allowBlank : false
85
+ , blankText : _ ( 'chunk_err_ns_name' )
85
86
, value : config . record . name
86
87
, tabIndex : 1
87
88
, listeners : {
@@ -95,6 +96,9 @@ MODx.panel.Chunk = function(config) {
95
96
}
96
97
, scope : this
97
98
}
99
+ , change : {
100
+ fn : MODx . util . stripAndEncode . onChange
101
+ }
98
102
}
99
103
} , {
100
104
xtype : MODx . expandHelp ? 'label' : 'hidden'
@@ -173,6 +177,11 @@ MODx.panel.Chunk = function(config) {
173
177
, maxLength : 255
174
178
, tabIndex : 5
175
179
, value : config . record . description || ''
180
+ , listeners : {
181
+ change : {
182
+ fn : MODx . util . stripAndEncode . onChange
183
+ }
184
+ }
176
185
} , {
177
186
xtype : MODx . expandHelp ? 'label' : 'hidden'
178
187
, forId : 'modx-chunk-description'
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ MODx.panel.Plugin = function(config) {
82
82
, maxLength : 50
83
83
, enableKeyEvents : true
84
84
, allowBlank : false
85
+ , blankText : _ ( 'plugin_err_ns_name' )
85
86
, value : config . record . name
86
87
, tabIndex : 1
87
88
, listeners : {
@@ -92,6 +93,9 @@ MODx.panel.Plugin = function(config) {
92
93
}
93
94
, scope : this
94
95
}
96
+ , change : {
97
+ fn : MODx . util . stripAndEncode . onChange
98
+ }
95
99
}
96
100
} , {
97
101
xtype : MODx . expandHelp ? 'label' : 'hidden'
@@ -160,6 +164,11 @@ MODx.panel.Plugin = function(config) {
160
164
, maxLength : 255
161
165
, tabIndex : 3
162
166
, value : config . record . description || ''
167
+ , listeners : {
168
+ change : {
169
+ fn : MODx . util . stripAndEncode . onChange
170
+ }
171
+ }
163
172
} , {
164
173
xtype : MODx . expandHelp ? 'label' : 'hidden'
165
174
, forId : 'modx-plugin-description'
Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ MODx.panel.Snippet = function(config) {
85
85
, maxLength : 50
86
86
, enableKeyEvents : true
87
87
, allowBlank : false
88
+ , blankText : _ ( 'snippet_err_ns_name' )
88
89
, value : config . record . name
89
90
, tabIndex : 1
90
91
, listeners : {
@@ -98,6 +99,9 @@ MODx.panel.Snippet = function(config) {
98
99
}
99
100
, scope : this
100
101
}
102
+ , change : {
103
+ fn : MODx . util . stripAndEncode . onChange
104
+ }
101
105
}
102
106
} , {
103
107
xtype : MODx . expandHelp ? 'label' : 'hidden'
@@ -176,6 +180,11 @@ MODx.panel.Snippet = function(config) {
176
180
, maxLength : 255
177
181
, tabIndex : 3
178
182
, value : config . record . description || ''
183
+ , listeners : {
184
+ change : {
185
+ fn : MODx . util . stripAndEncode . onChange
186
+ }
187
+ }
179
188
} , {
180
189
xtype : MODx . expandHelp ? 'label' : 'hidden'
181
190
, forId : 'modx-snippet-description'
Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ MODx.panel.Template = function(config) {
83
83
, maxLength : 50
84
84
, enableKeyEvents : true
85
85
, allowBlank : false
86
+ , blankText : _ ( 'template_err_ns_name' )
86
87
, value : config . record . templatename
87
88
, tabIndex : 1
88
89
, listeners : {
@@ -93,6 +94,9 @@ MODx.panel.Template = function(config) {
93
94
}
94
95
, scope : this
95
96
}
97
+ , change : {
98
+ fn : MODx . util . stripAndEncode . onChange
99
+ }
96
100
}
97
101
} , {
98
102
xtype : MODx . expandHelp ? 'label' : 'hidden'
@@ -161,6 +165,11 @@ MODx.panel.Template = function(config) {
161
165
, maxLength : 255
162
166
, tabIndex : 5
163
167
, value : config . record . description || ''
168
+ , listeners : {
169
+ change : {
170
+ fn : MODx . util . stripAndEncode . onChange
171
+ }
172
+ }
164
173
} , {
165
174
xtype : MODx . expandHelp ? 'label' : 'hidden'
166
175
, forId : 'modx-template-description'
You can’t perform that action at this time.
0 commit comments