diff --git a/app/views/layouts/phone.html.slim b/app/views/layouts/phone.html.slim index 0d76b2ae..cfc9e34a 100644 --- a/app/views/layouts/phone.html.slim +++ b/app/views/layouts/phone.html.slim @@ -21,7 +21,8 @@ html lang="en" var QMobile; // Dummy holder when Qmobile object is not supplied by the mobile phone QMobile || (QMobile = { - scanQr: function(){window.location = '/select_qrcode'} + scanQr: function(){window.location = '/select_qrcode'}, + activateRotation: function(){} }); body diff --git a/app/views/user/list_products_for_table.html.slim b/app/views/user/list_products_for_table.html.slim index afb924b8..59f40a5a 100644 --- a/app/views/user/list_products_for_table.html.slim +++ b/app/views/user/list_products_for_table.html.slim @@ -23,5 +23,6 @@ table#active-order-table.table.table-striped.hide javascript: jQuery(function(){ Quser.load_table_products('#{@table.id}', #{@table.occupied? ? 'true' : 'false'}); + QMobile.activateRotation(); })