From c4842ca86337e6a8347683ff98ed45898df8ceaa Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Wed, 17 Aug 2011 13:22:29 +0000 Subject: [PATCH] make setting sort option of icon list work --- source/Ox.UI/js/List/Ox.IconList.js | 2 ++ source/Ox.UI/js/List/Ox.List.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/List/Ox.IconList.js b/source/Ox.UI/js/List/Ox.IconList.js index 2470195c..6d990604 100644 --- a/source/Ox.UI/js/List/Ox.IconList.js +++ b/source/Ox.UI/js/List/Ox.IconList.js @@ -139,6 +139,8 @@ Ox.IconList = function(options, self) { that.$element.options(key, value); } else if (key == 'selected') { that.$element.options(key, value); + } else if (key == 'sort') { + that.$element.options(key, value); } }; diff --git a/source/Ox.UI/js/List/Ox.List.js b/source/Ox.UI/js/List/Ox.List.js index 5c7eb90c..378fd614 100644 --- a/source/Ox.UI/js/List/Ox.List.js +++ b/source/Ox.UI/js/List/Ox.List.js @@ -1314,7 +1314,7 @@ Ox.List = function(options, self) { // may break other things !self.isAsync && triggerSelectEvent(value); } else if (key == 'sort') { - //Ox.print('---sort---') + Ox.print('---sort---') updateSort(); } };