From 1d86f10e798af8b532db2ef3333f43e217c1265a Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 31 Mar 2012 18:28:32 +0200 Subject: [PATCH] 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 --- source/Ox.UI/js/Form/Ox.Select.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Form/Ox.Select.js b/source/Ox.UI/js/Form/Ox.Select.js index 5c4bd331..8aa33e93 100644 --- a/source/Ox.UI/js/Form/Ox.Select.js +++ b/source/Ox.UI/js/Form/Ox.Select.js @@ -81,7 +81,8 @@ Ox.Select = function(options, self) { title: isObject ? item.title : item, checked: Ox.toArray(self.options.value).indexOf( isObject ? item.id : item - ) > -1 + ) > -1, + disabled: isObject ? item.disabled : false }; });