IconList/InfoList: keep self.options.selected in sync
This commit is contained in:
parent
b5d5936e59
commit
f22e5a032d
2 changed files with 6 additions and 0 deletions
|
@ -105,6 +105,9 @@ Ox.IconList = function(options, self) {
|
|||
})
|
||||
.addClass('OxIconList Ox' + Ox.toTitleCase(self.options.orientation))
|
||||
.bindEvent(function(data, event) {
|
||||
if (event == 'select') {
|
||||
self.options.selected = data.ids;
|
||||
}
|
||||
that.triggerEvent(event, data);
|
||||
})
|
||||
);
|
||||
|
|
|
@ -80,6 +80,9 @@ Ox.InfoList = function(options, self) {
|
|||
})
|
||||
.addClass('OxInfoList')
|
||||
.bindEvent(function(data, event) {
|
||||
if (event == 'select') {
|
||||
self.options.selected = data.ids;
|
||||
}
|
||||
that.triggerEvent(event, data);
|
||||
})
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue