fixed 5th parameter of menu does not work on mobiles, issue 805, thanks mweissen

This commit is contained in:
Massimo DiPierro committed 2012-05-19 10:11:55 -05:00
1 parent 667396904c
commit 5ce35c1726
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -1 +1 @@
Version 2.00.0 (2012-05-19 10:09:36) dev Version 2.00.0 (2012-05-19 10:11:52) dev
+1
View File
@@ -2150,6 +2150,7 @@ class MENU(DIV):
if not select: if not select:
select = SELECT(**self.attributes) select = SELECT(**self.attributes)
for item in data: for item in data:
if len(item) <= 4 or item[4] == True:
if item[2]: if item[2]:
select.append(OPTION(CAT(prefix, item[0]), _value=item[2], _selected=item[1])) select.append(OPTION(CAT(prefix, item[0]), _value=item[2], _selected=item[1]))
if len(item)>3 and len(item[3]): if len(item)>3 and len(item[3]):