From 260c513e8ee2ca1407ead2adf635f1b4b54b92ca Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Fri, 23 Mar 2012 09:27:31 +0000 Subject: [PATCH] in list with max=0, make sure items are not selectable (fixes #708) --- source/Ox.UI/js/List/Ox.List.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Ox.UI/js/List/Ox.List.js b/source/Ox.UI/js/List/Ox.List.js index 20b5ad88..855c3912 100644 --- a/source/Ox.UI/js/List/Ox.List.js +++ b/source/Ox.UI/js/List/Ox.List.js @@ -851,7 +851,7 @@ Ox.List = function(options, self) { // shift-click on item addAllToSelection(pos); } - } else if (!isSelected(pos)) { + } else if (!isSelected(pos) && self.options.max != 0) { // click on unselected item select(pos); } else if (self.options.type == 'text') {