misc: remove old mobile mode (#25942)
This commit is contained in:
parent
8c5973f5b6
commit
1f1e76dce3
|
@ -945,11 +945,6 @@ class AlternateRootDirectory(OldRootDirectory):
|
|||
|
||||
all_formdefs = FormDef.select(lambda x: not x.is_disabled() or x.disabled_redirection,
|
||||
order_by = 'name')
|
||||
if get_response().page_template_key == 'mobile':
|
||||
# if we are in 'mobile' mode, and some formdefs have a 'mobile'
|
||||
# keyword, we limit the display to those
|
||||
if any((x for x in all_formdefs if x.keywords and 'mobile' in x.keywords)):
|
||||
all_formdefs = [x for x in all_formdefs if x.keywords and 'mobile' in x.keywords]
|
||||
|
||||
if position:
|
||||
t = self.display_list_of_formdefs(
|
||||
|
|
Reference in New Issue