fix a bug that would keep disabled items in a select enabled, and in consequence allow for removal of title and director columns in 0xDB list view

This commit is contained in:
rolux 2012-03-31 18:28:32 +02:00
parent 3be78a965a
commit 1d86f10e79

View file

@ -81,7 +81,8 @@ Ox.Select = function(options, self) {
title: isObject ? item.title : item, title: isObject ? item.title : item,
checked: Ox.toArray(self.options.value).indexOf( checked: Ox.toArray(self.options.value).indexOf(
isObject ? item.id : item isObject ? item.id : item
) > -1 ) > -1,
disabled: isObject ? item.disabled : false
}; };
}); });