From 85d32fded3b610497348dc4b2ee967b294f24448 Mon Sep 17 00:00:00 2001 From: Massimo Di Pierro Date: Wed, 7 Mar 2012 15:17:23 -0600 Subject: [PATCH] re-enabled mobile detection in admin --- Makefile | 1 + VERSION | 2 +- applications/admin/controllers/default.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 45a617b5..1e2cdd57 100644 --- a/Makefile +++ b/Makefile @@ -119,4 +119,5 @@ commit: push: hg push git push + git push mdipierro #bzr push bzr+ssh://mdipierro@bazaar.launchpad.net/~mdipierro/web2py/devel --use-existing-dir diff --git a/VERSION b/VERSION index 47221d11..d532cba2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.7 (2012-03-07 11:26:49) dev +Version 1.99.7 (2012-03-07 15:16:58) dev diff --git a/applications/admin/controllers/default.py b/applications/admin/controllers/default.py index d95a4b4c..9f07abfa 100644 --- a/applications/admin/controllers/default.py +++ b/applications/admin/controllers/default.py @@ -3,7 +3,7 @@ EXPERIMENTAL_STUFF = True if EXPERIMENTAL_STUFF: - is_mobile = True # request.user_agent().is_mobile + is_mobile = request.user_agent().is_mobile if is_mobile: response.view = response.view.replace('default/','default.mobile/') response.menu = []