fixed mobile admin, and improved it

This commit is contained in:
mdipierro
2012-10-05 10:24:14 -05:00
parent b142fa9f7e
commit 2841fbbf61
12 changed files with 42 additions and 200 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ def A_button(*a,**b):
return A(*a,**b)
def button(href, label):
if request.user_agent().is_mobile:
if is_mobile:
ret = A_button(SPAN(label), _href=href)
else:
ret = A(SPAN(label),_class='button',_href=href)