allows to customize the A in a MENU, thanks ilvalle
This commit is contained in:
1 parent
16540d32ae
commit
863140fec9
2 files changed
+3
-1
No files matched your search
@@ -1 +1 @@
|
||||
Version 2.2.1 (2012-10-31 10:02:04) stable
|
||||
Version 2.2.1 (2012-10-31 10:22:15) stable
|
||||
@@ -2320,6 +2320,8 @@ class MENU(DIV):
|
||||
li = LI(link)
|
||||
elif 'no_link_url' in self.attributes and self['no_link_url'] == link:
|
||||
li = LI(DIV(name))
|
||||
elif isinstance(link,dict):
|
||||
li = LI(A(name, **link))
|
||||
elif link:
|
||||
li = LI(A(name, _href=link))
|
||||
elif not link and isinstance(name, A):
|
||||
|
||||
Reference in new issue
Block a user