From f22e5a032d738725f573d4635ceb2f43ed933576 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sat, 30 Jun 2012 16:12:05 +0000 Subject: [PATCH] IconList/InfoList: keep self.options.selected in sync --- source/Ox.UI/js/List/IconList.js | 3 +++ source/Ox.UI/js/List/InfoList.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/source/Ox.UI/js/List/IconList.js b/source/Ox.UI/js/List/IconList.js index 5ac09b07..68a32080 100644 --- a/source/Ox.UI/js/List/IconList.js +++ b/source/Ox.UI/js/List/IconList.js @@ -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); }) ); diff --git a/source/Ox.UI/js/List/InfoList.js b/source/Ox.UI/js/List/InfoList.js index 73e81b62..a309428d 100644 --- a/source/Ox.UI/js/List/InfoList.js +++ b/source/Ox.UI/js/List/InfoList.js @@ -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); }) );