diff --git a/erpnext/selling/page/point_of_sale/point_of_sale.js b/erpnext/selling/page/point_of_sale/point_of_sale.js index 6e4d1d0a373..b8f83910257 100644 --- a/erpnext/selling/page/point_of_sale/point_of_sale.js +++ b/erpnext/selling/page/point_of_sale/point_of_sale.js @@ -5,6 +5,7 @@ frappe.pages["point-of-sale"].on_page_load = function (wrapper) { parent: wrapper, title: __("Point of Sale"), single_column: true, + hide_sidebar: true, }); frappe.require("point-of-sale.bundle.js", function () { diff --git a/erpnext/selling/page/point_of_sale/pos_controller.js b/erpnext/selling/page/point_of_sale/pos_controller.js index 32ae30ad303..41b89259eca 100644 --- a/erpnext/selling/page/point_of_sale/pos_controller.js +++ b/erpnext/selling/page/point_of_sale/pos_controller.js @@ -258,33 +258,6 @@ erpnext.PointOfSale.Controller = class { this.page.clear_icons(); this.page.set_primary_action(__("New Invoice"), this.new_invoice_event.bind(this)); this.page.set_secondary_action(__("Recent Orders"), this.toggle_recent_order.bind(this)); - this.page.add_action_icon( - "fullscreen", - this.bind_fullscreen_events.bind(this), - "btn-fullscreen", - "Fullscreen" - ); - this.page.add_action_icon( - "minimize", - this.bind_fullscreen_events.bind(this), - "btn-minimize hide", - "Minimize" - ); - } - - bind_fullscreen_events() { - if (!document.fullscreenElement) { - document.documentElement.requestFullscreen(); - this.toggle_fullscreen_btn(".btn-minimize", ".btn-fullscreen"); - } else if (document.exitFullscreen) { - document.exitFullscreen(); - this.toggle_fullscreen_btn(".btn-fullscreen", ".btn-minimize"); - } - } - - toggle_fullscreen_btn(show, hide) { - this.page.page_actions.find(hide).addClass("hide"); - this.page.page_actions.find(show).removeClass("hide"); } open_form_view() {