fixed mobile issue, thanks Martin

This commit is contained in:
mdipierro
2012-08-28 10:56:19 -05:00
parent dbe39a5cf4
commit 142b7cd98c
2 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.00.1 (2012-08-28 10:54:03) rc4
Version 2.00.1 (2012-08-28 10:56:15) rc4
+5 -4
View File
@@ -2272,10 +2272,11 @@ class MENU(DIV):
select = SELECT(**self.attributes)
for item in data:
if len(item) <= 4 or item[4] == True:
if item[2]:
select.append(OPTION(CAT(prefix, item[0]), _value=item[2], _selected=item[1]))
if len(item)>3 and len(item[3]):
self.serialize_mobile(item[3], select, prefix = CAT(prefix, item[0], '/'))
select.append(OPTION(CAT(prefix, item[0]),
_value=item[2], _selected=item[1]))
if len(item)>3 and len(item[3]):
self.serialize_mobile(
item[3], select, prefix = CAT(prefix, item[0], '/'))
select['_onchange'] = 'window.location=this.value'
return select