Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tev
plugin_event
Commits
c1189a12
Commit
c1189a12
authored
Oct 09, 2016
by
LE GAC Renaud
Browse files
Update UserDataMultiDefault to use the new definition of the combo.select event.
parent
b16c1a57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
static/track_events/src/form/field/UserDataMultiDefault.js
static/track_events/src/form/field/UserDataMultiDefault.js
+10
-8
No files found.
static/track_events/src/form/field/UserDataMultiDefault.js
View file @
c1189a12
...
...
@@ -139,14 +139,13 @@ Ext.define('TrackEvents.form.field.UserDataMultiDefault', {
// supersede the base class method to deal with the data type
//
// @param {Ext.form.field.ComboBox} combo
// @param {Ext.data.Model
[]
} record
s
// @param {Ext.data.Model} record
//
//
onComboBoxSelect
:
function
(
combo
,
record
s
)
{
onComboBoxSelect
:
function
(
combo
,
record
)
{
"
use strict
"
;
var
me
=
this
,
record
=
records
.
length
?
records
[
0
]
:
null
,
cfg
;
cfg
=
me
.
buildSourceConfig
(
record
);
...
...
@@ -193,12 +192,15 @@ Ext.define('TrackEvents.form.field.UserDataMultiDefault', {
// get the configuration for the Ext.grid.property.Grid
record
=
combo
.
findRecordByValue
(
combo
.
getValue
());
cfg
=
me
.
buildSourceConfig
(
record
);
// fill the property grid
// NOTE: let the editor take care of the data type conversion
// when the user data block definition change
me
.
grid
.
setSource
(
value
,
cfg
.
sourceConfig
);
if
(
record
!==
false
)
{
cfg
=
me
.
buildSourceConfig
(
record
);
// fill the property grid
// NOTE: let the editor take care of the data type conversion
// when the user data block definition change
me
.
grid
.
setSource
(
value
,
cfg
.
sourceConfig
);
}
}
// the standard way to set the value for a field
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment