IconList/InfoList: keep self.options.selected in sync

This commit is contained in:
rlx 2012-06-30 16:12:05 +00:00
parent b5d5936e59
commit f22e5a032d
2 changed files with 6 additions and 0 deletions

View file

@ -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);
})
);

View file

@ -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);
})
);