in list with max=0, make sure items are not selectable (fixes #708)

This commit is contained in:
rlx 2012-03-23 09:27:31 +00:00
parent 2dbe98bb98
commit 260c513e8e

View file

@ -851,7 +851,7 @@ Ox.List = function(options, self) {
// shift-click on item // shift-click on item
addAllToSelection(pos); addAllToSelection(pos);
} }
} else if (!isSelected(pos)) { } else if (!isSelected(pos) && self.options.max != 0) {
// click on unselected item // click on unselected item
select(pos); select(pos);
} else if (self.options.type == 'text') { } else if (self.options.type == 'text') {