fixed 5th parameter of menu does not work on mobiles, issue 805, thanks mweissen
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.00.0 (2012-05-19 10:09:36) dev
|
||||
Version 2.00.0 (2012-05-19 10:11:52) dev
|
||||
|
||||
+5
-4
@@ -2150,10 +2150,11 @@ class MENU(DIV):
|
||||
if not select:
|
||||
select = SELECT(**self.attributes)
|
||||
for item in data:
|
||||
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], '/'))
|
||||
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['_onchange'] = 'window.location=this.value'
|
||||
return select
|
||||
|
||||
|
||||
Reference in New Issue
Block a user